Skip to content
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

Supporting swipe gestures for smartphones #3

Open
LeaVerou opened this issue Apr 15, 2011 · 2 comments
Open

Supporting swipe gestures for smartphones #3

LeaVerou opened this issue Apr 15, 2011 · 2 comments

Comments

@LeaVerou
Copy link
Owner

One of the biggest issues of CSSS currently is the complete lack of support for mobile devices. I'm not really that experienced with mobile, so I'd welcome a pull request about this.
Requirements would be:
a) It's small (so no huge libraries please like jQuery touch or whatever)
b) It works on at least Safari iPhone and Opera Mobile on touch-enabled devices.

Thanks in advance to anyone that decides to work on this.

@humantorch
Copy link

7 months later... how do you envision this behaving? I have a still-a-bit-buggy implementation of left/right swiping firing your .previous() and .next() actions. I was thinking about trying to get up & down swiping to fire .start() and .end(), perhaps.

I also don't have an Opera Mobile device handy, so just testing in iOS for now.

So far, unminified, it's just a shade under 2k with no external dependencies.

@LeaVerou
Copy link
Owner Author

I think left/right swiping firing .previous() and .next() is fine, I'd be wary of easily triggering .start() and .end() as they might cause someone to lose where they were in the slideshow (sure, they can press back but still...)

I'd love it if the swipe was real swipe, i.e. you got feedback while dragging by viewing part of the next/previous slide. But I guess that's too hard and would add too much clutter in the codebase :(

2k is fine, as long as it doesn't become 10k after fixing the bugs :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants