-
Notifications
You must be signed in to change notification settings - Fork 17
Conversation
Works great for me! |
Can you rebase this to have the original two space tabbing? |
updated. |
I've tested the latest version of the PR. It broke vertical touch scrolling of main on both ios and android for me. I changed line 132 (https://github.com/netanelgilad/core-drawer-panel/blob/master/core-drawer-panel.html#L132) to: and now it works. Swipe left/right controls the drawer, and swipe up/down scrolls main. |
Good catch. I did a few tests on scrolling the drawer when it overflows and I've added a bit more logic to make it work correctly. I've tested it on my android and it seems to work fine. Would love to see a test on ios. |
I added your changes to my project and it works great until you swipe the drawer vertically and then swipe left to close. It doesn't call "on-trackStart" or "on-track". |
@squeral Do you mean that you scroll vertically and while holding your finger down you swipe left and it doesn't close? |
No. The behaviour your describing seams right to me. But by issue is when I swipe vertically, lift my finger and swipe horizontally (new gesture) nothing happens. It works if I tap somewhere before swiping horizontally. |
I've created a gist of the demo that I used to check the vertical scrolling. |
I got the same issue with your gist.
If I tap somewhere and swipe again it works... |
Wierd.. I can't seem to replicate this. |
In narrow mode, when I tried to drag out the drawer a little bit and then released, the drawer slid back immediately first and then slid out. BTW, thanks for working on this feature. |
I fixed the issue with the drawer sliding back before opening. |
I haven't looked at the code but I have noticed 2 issues when I tried the demo with the changes.
|
I went ahead and fixed the issues I mentioned in my previous comment and manually merged your swipe support changes. I also simplified and refactored a few things in the code. I added a comment in the commit and in the code referencing this pull request as the original code for the swipe support. Thanks for the good work. |
I tested it with my content and it works great!! Well done ;) |
Added swipe support for the drawer.
Can be swiped out of the side based on the edge swipe sensitivity.
When drawer is open can be swiped out anywhere.