gestures
gestures copied to clipboard
configuration for gesture length
Hi, I'm really excited of gesture!
Could you add configuration to gesture() for changing gestureLength and other options?
This request comes from using different devices. For mobile devices it is complicated to differntiate between vertical and horizontal swipe with 20px gestureLength.
Best regards Daniel
Sorry for the long delay in responding. I've been lying low because of the pandemic. If I understand you correctly, you want to be able to configure different lengths for swipes for different device. The problem, of course, is how would one designate different devices in a reliable way. Device identification is the biggest headache in mobile software development. There are so many devices, versions of devices, and configuration of devices. However, after installing, you could just open up the src.js
file to line 81 and change the value of var gestureLength = 20
to whatever suits your purposes.