nuclearpasta / react-native-drax

A drag-and-drop system for React Native
MIT License
554 stars 69 forks source link

Increase Responsiveness With Draggable Item #121

Closed alexkendall closed 3 years ago

alexkendall commented 3 years ago

I've been using this library (it works very well), and I was just wondering if there was anyway to control the sensitivity of items that are draggable, for example, require less time to start a drag event.

From my understanding the library leverages react-native-gesture-recognizer and LongPressGestureHandler. Is there somewhere in the code I would be able to edit the minDurationMs prop of the LongPressGestureHandler within react-native-drax?

Thanks!

lafiosca commented 3 years ago

Hi @alexkendall, please check out the longPressDelay prop on DraxView and DraxList and see if it gives you what you need.

alexkendall commented 3 years ago

Thanks that worked!