Show HN: Touch-enabled Gesture Helper for your website
genielabs.github.io
genielabs.github.io
In an image gallery if i swipe left the image should follow my finger until the next image shows up on the right side, not stay still until i finish whatever the platform consider a "swipe left gesture". Same for pinch, the image should be resized under my fingers as i move them, not after i release them.
I haven't seen predefined gestures being useful in any app or web page ever so i'm sorry to say this library will be likewise, despite it looking very clean and easy to use from a developer point of view.
The UI logic that takes care of actually dragging elements underneath when a "pan" gesture is detected, is implemented in the ViewPager.
Infact, if you look at the view_pager.js source code, you'll notice that it is using the gesture_helper to do its job.
https://genielabs.github.io/zkit/docs/controllers/view_pager
https://genielabs.github.io/zkit/docs/controllers/view_pager
edit: your cdn was failing. now it captures all events and is not a detection, since i can't scroll touching over the target. also, shows keyboard_arrow_up/down on actual scroll
GestureHelper detects: - Touch - Tap - Pan - Swipe
GestureHelper and the component-based library behind, which is zuix.js (https://genielabs.github.io/zuix), are specifically designed to work on modern browsers only.