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

[BUG]: Unable to Cancel Up Swipe with Down Swipe Disabled #309

Open
ThomasHaas15 opened this issue Sep 7, 2024 · 0 comments
Open

[BUG]: Unable to Cancel Up Swipe with Down Swipe Disabled #309

ThomasHaas15 opened this issue Sep 7, 2024 · 0 comments
Assignees

Comments

@ThomasHaas15
Copy link

ThomasHaas15 commented Sep 7, 2024

Plugin name
Appinio Swiper

Describe the bug
When the SwipeOptions.only(down: false) option is used, the ability to cancel an upward swipe is impaired. If a user swipes up but then tries to reverse the action (drag the card back down), the card continues moving upward instead of following the intended cancel gesture. This ultimately results in the card being swiped up completely, even if the user attempted to stop or reverse the swipe. The issue appears to be related to the down: false setting, which prevents downward motion.

To Reproduce
Steps to reproduce the behavior:

  1. Set SwipeOptions.only(down: false).
  2. Swipe up on a card.
  3. Try to reverse the swipe by dragging the card back down.
swipeOptions: const SwipeOptions.only(
     up: true,
     down: false,
     left: true,
     right: true,
),

Expected behavior
When swiping up, users should be able to cancel or reverse the swipe by dragging the card back down, regardless of the down: false setting.

Screenshots

Screen.Recording.2024-09-07.at.20.58.23.mov

Smartphone:

  • Device: iPhone 15 Pro (simulator)
  • OS: iOS 17.5
@ThomasHaas15 ThomasHaas15 changed the title [ BUG ] : Unable to Cancel Up Swipe When Up swipe cannot be canceled when down swipe is disabled [ BUG ] : Unable to Cancel Up Swipe When Down Swipe is disabled Sep 7, 2024
@ThomasHaas15 ThomasHaas15 changed the title [ BUG ] : Unable to Cancel Up Swipe When Down Swipe is disabled [BUG]: Unable to Cancel Up Swipe with Down Swipe Disabled Sep 7, 2024
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

2 participants