-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only allow opening menu by swiping from far left #59
Comments
good idea. would increase usability with issue #58 |
PR #10 is a pretty nice and simple fix for this. I've forked slideout and it works perfectly with the |
nice. but how is about browser history? sometimes it jumps back to previous page instead of opening the menu. this effect increases when the grab area is smaller. |
Works fine for me, i use a grab width of 40 |
hello everybody, grabWidth is a great thing but i have a question, how can i make it work when slideout is on the right side, not the left? |
I do think grabWidth is important as when user sliding vertically especially on larger phone, the slide trajectory tend to skew to the right (for right-handed), which resulted in unintentional opening of the menu. I'm using codes from PR#10 for now. It really complete the already marvellous library. |
Is this merged already? |
Until its merged and minified, here is a minified version iwht Only grabWidth added (no closeOnClick):
|
+1 |
Hi guys, I am using the @iamandrebulatov fork (great by the way), but the disableTouch() is not working. Do you guys know why? Thanks in advance |
The grabWidth option only works for left side menu... |
With mobile browsers these days using a far-left/far-right swipe approach for browser history navigation (back/forward), we almost need the complete opposite feature - ability to have like a "grab margin". In other words, if you begin swiping from within 40px from the left of the screen, it won't open the menu. But if you swipe 40px out from the left of the screen, it would open the menu. (Swap 'non-swipeable' and 'swipeable' regions in the example image above) |
@samwalshnz do you mean for mobiles where there is basically no bezel, so you don't accidentally open the menu or something? |
@garygreen Yeah - but even phones with bezel have the same problem. For example, in Chrome (and Safari I believe) on an iPhone, if you swipe right from the left edge of the screen, it goes back a page |
+1 this feature would be really great I would be needing it too. Using a work around for the moment |
Is this currently possible? It would be cool to be able to have an option to set the 'touch region' on the far left hand side so the menu will only be allowed to open if sliding within e.g. <= 20% of the far left hand side, similar to how Android apps work.
The text was updated successfully, but these errors were encountered: