-
Notifications
You must be signed in to change notification settings - Fork 224
slide to close not working. #169
Comments
Hi, Which iPhone or ipad are you currently using? Do you think swiping right to left should be enabled? I don't have an iPhone on me right now, so I can't check the exact behaviour. It might have been a mistake on my part to remove touch gestures entirely on IOS. |
Hi, i'm using iphone x |
even the sliding from left to right should work in middle of the screen, "swipe-to-go-back" feature works only in the edges so it will not cause any problem to the sidebar if its in middle of the screen, like (Discord app) |
Ok, I agree, enabling sliding from the middle of the screen when sidebar is opened seems better. It might take a while before I can actually implement that change though, since I'll be busy starting a new job in next few days and also need to get access to an iPhone. In the meantime you can use the old version of the package by doing |
I meant when it closed, there no issues if people slide left to right (in middle of screen) to open it. like |
|
I don't follow. If someone wants to open the sidebar with a touch gesture, they have to slide from the edge to the middle right? And that will in turn cause the go-back-in-history behavior on IOS which makes it basically unusable. |
@markusenglund Yes, but why from edges to middle? why not just sliding from left to right in middle of the screen (not from edges). it will works fine like (slideout.js), try slideout in your smartphone and u'll understand what i mean |
Ok I understand what you mean. Unfortunately I think that would take quite a bit of effort to implement in this library. I simply don't have the time to do it currently so I will not implement it. |
@markusenglund your library already make div that above the main content, and already works with the (edges) in version @2, Is it hard to implement that to a nice base you have? |
Well, you don't really know before you try but I foresee a few potential problems like
It's definitely doable but I just don't feel like taking on the challenge right now. If you want, you could try to make your own PR which would be highly appreciated. |
We are using this plugin for a Cordova app, so we won't have the issue of the 'swipe to go back' feature that exists in Safari. We could use the older version, but is there anything else that might bite us there? The ideal scenario for us would be an option like iosEnableSwipe that we could pass to force it on, knowing the issue in the browser. We could even dynamically set that for our mobile builds vs our browser builds. Either way, if you could please let me know if the best solution is to use the older version :) Thanks, Sebastien UPDATE: I tried the older version, and its for sure a mess just swapping it out. The code looks really straight forward, so I could customize if needed, but would of course rather have it be a real feature. |
Hi,
in the demo i can slide the sidebar with my finger to close it. but i cant do that in with the example
Responsive sidebar
code.both overlay click / close function works fine.
what the problem here.
The text was updated successfully, but these errors were encountered: