gestures icon indicating copy to clipboard operation
gestures copied to clipboard

configuration for gesture length

Open clck-dr opened this issue 4 years ago • 1 comments

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

clck-dr avatar Nov 20 '20 15:11 clck-dr

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.

rbiggs avatar Feb 25 '21 14:02 rbiggs