how to make swipe threshold smaller
See original GitHub issueI have 3 snapPoints, the highest one being the screen height, this causes a problem however, when you try to swipe up, you really have to drag your finger really high in the screen to make the bottom sheet snap, I tried changing the value of callbackThreshold
but it doesn’t seem to affect how far you need to drag the sheet.
Any suggestions on how to solve this?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:14 (6 by maintainers)
Top Results From Across the Web
How to configure threshold/distance when swiping on ...
1 Answer 1 · add a UIPanGestureRecognizer to the table · allow simultaneous recognitions of gestures · when a swipe ends check for...
Read more >Gesture options - @use-gesture documentation
For non-drag xy gestures, that threshold is always a number, which defaults to 0 . drag. Type. { mouse: number, pen: number, touch:...
Read more >Use Gestures to Control YouTube's Brightness & Volume on ...
Swipe threshold controls how far you have to swipe up or down before the gesture is recognized. By default, this is at 0...
Read more >Touch threshold configuration [#3077031] | Drupal.org
I've played around with the "touch threshold" setting for quite a while, and yet can't figure out how to achieve a lower swipe...
Read more >Gestures | Jetpack Compose - Android Developers
The swipe gesture can be configured to have different threshold types, such as FixedThreshold(Dp) and FractionalThreshold(Float) , and they can be different for ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the swipe threshold we’re talking about should be configurable via a prop.
And it might be more intuitive to have it be
velocityThreshold={500}
so that regardless of position between snap points, if the velocity of the swipe exceeds +/-500, it snaps in the direction of the swipe.I don’t think the library is unmaintained, but it seems @osdnk is not on top of the issues, maybe the best course would be to create a PR, right now I’m in the middle of a major refactoring, but I will try to create a PR early next year.