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

(left-right)swipe occurs during page scroll (up-down) #41

Open
RowanMamdouh opened this issue Dec 27, 2020 · 0 comments
Open

(left-right)swipe occurs during page scroll (up-down) #41

RowanMamdouh opened this issue Dec 27, 2020 · 0 comments

Comments

@RowanMamdouh
Copy link

trying to scroll in page on mobile but swipe is triggered i want to stop this i tried this but no thing happened

jQuery.extend(jQuery.event.special.swipe,{
scrollSupressionThreshold: 10, // More than this horizontal displacement, and we will suppress scrolling.
// durationThreshold: 1000, // More time than this, and it isn't a swipe.
horizontalDistanceThreshold: Math.min(jQuery(document).width() / 2, 160), // Swipe horizontal displacement must be more than this.
verticalDistanceThreshold:Math.min(jQuery(document).height() / 2, 160), //jQuery('.second-section').offset().top + jQuery('.second-section').height(), // Swipe vertical displacement must be less than this.
});

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

1 participant