question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to make swipe threshold smaller

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
harterc1commented, Feb 4, 2020

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.

2reactions
ospfrancocommented, Dec 27, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found