-
Notifications
You must be signed in to change notification settings - Fork 23
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
Undraggable items when list is scrolled to the end #67
Comments
Here is the page code :
|
From my understanding, it is (In fact Update: if I use a |
@JB712 : thanks for taking the time to report this. Interestingly, I don't get this problem (i.e. in production code that uses this library, I can scroll to the end of a multipage list and press-and-hold an item to move it around, no problem). I wonder if there's a way we can simplify the repro in your case in order to identify what's different between your code and mine. Here's how my code handles it: <TouchableOpacity
style={containerStyle}
delayLongPress={LONG_PRESS_MS}
onPress={onItemPress}
onLongPress={onDragStart}
onPressOut={onDragEnd}
{...rest}
>
....
</TouchableOpacity> It's also interesting that you only get this if the list is scrolled to the end. One more thought: when you say |
I'm facing a very specific issue on iOS simulator and real devices.
When the DragList is longer than the screen size and is scrolled down to the end, trying to reorder with a long press always fail as the moment the item is detecting long press onPressOut is automatically fired so the item is directly unselected (see video attached).
Draglist is included in a simple View to add a button to its page (button enables user to hide items on the list). The whole page is included in a SafeAreaProvider (from react-native-safe-area-context), a PersistGate (from redux-persist/lib/integration/react) and a Provider (from react-redux).
Simulator.Screen.Recording.-.iPhone.12.mini.-.2025-01-02.at.10.52.07.mp4
The text was updated successfully, but these errors were encountered: