-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Swipe #23
Swipe #23
Conversation
@noelboss So what should we do exactly here? Fix the mobile non-swipe version? Merge this commit and put in Readme/wiki that one should load the swipe lib if desired? Both? |
I like the idea of it, but I would like to think about it a little more. F.e. Is there an easy way to make this more flexible? (Also, I m thinking about moving gallery to the wiki as an implementation example.) |
Right, if we could have a way to use different 'swipe' libs. I'd say the gallery is too "big" to be in a wiki. A wiki isn't accessible under I also don't see it as a example but as a directly usable library. I'd keep it here or split into it's own repo. |
I made a survey of existing libraries. All use the same jquery events 'swipeleft' and 'swiperight', so it's easy to support them all. I've made a wiki entry and will modify the commit to use improved detection for any of these.
|
Ok, I've updated my own swipe library and I've updated the wiki. Support is either for jQuery swipe aware libraries (any of the 3/4 I found) or non-jQuery libs (I found Hammer). |
Great. I think I used Hammer before. The thought I have in mind with the wiki is more of a loose range of possible implementations – since there are mostly very specific, I have the impression this could fit the need very well and releases are not needed since they are not real plugins. You know what I mean? Create a simple plugin (featherlight) thats easy to understand and adapt and add a lot of implementation examples. |
Support any jquery library with 'swipeleft'/'swiperight' event or Hammer.
Merged in as a2e4e19 |
Thank you! |
This breaks when I test it. |
Ok, I'll fix this. Any reason why index.html refers to |
Fixed, and added mention in wiki |
Mmm, still breaking. I really need to install automated tests... |
Ok, should finally be ok. |
The behavior of the gallery on mobile is pretty bad. It first requires a tap on the previous/next button, which we must "guess" exist, and the a tap on the button.
Consider getting rid of the navigation buttons altogether and detecting swipes instead.
Here's an example using my tiny lib. Consider bundling it?