Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

configuration for gesture length #6

Open
clck-dr opened this issue Nov 20, 2020 · 1 comment
Open

configuration for gesture length #6

clck-dr opened this issue Nov 20, 2020 · 1 comment

Comments

@clck-dr
Copy link

clck-dr commented Nov 20, 2020

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

@rbiggs
Copy link
Contributor

rbiggs commented Feb 25, 2021

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.

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

No branches or pull requests

2 participants