Skip to content

Conversation

@abhi3315
Copy link
Contributor

Current Issue

The default value of swipeThreshold is 200. Because of an incorrect check for the next swipe, the user has to scroll more than the threshold value to swipe to the next slide.

Fix

The condition has to be reversed because swipeDistanceX will be negative in case of the next slide swipe.

@junaidbhura junaidbhura requested a review from imranhsayed May 21, 2024 23:41
@junaidbhura
Copy link
Contributor

@imranhsayed could you please check this PR?

@imranhsayed
Copy link
Contributor

Thanks @junaidbhura
I have tested this locally. PR update is fine.

@junaidbhura junaidbhura merged commit 4cf1345 into master May 22, 2024
@junaidbhura junaidbhura deleted the fix/slide-swipe branch May 22, 2024 05:24
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

Successfully merging this pull request may close these issues.

3 participants