react-native-sortables icon indicating copy to clipboard operation
react-native-sortables copied to clipboard

[Bug]: Can't Initiate a scroll on an element when an element is draggable or the element is a Sortable.Touchable

Open dsessoms opened this issue 9 months ago • 1 comments

Description

First of all, thank you so much for building this!

Problem: When implementing the Sortable.Grid I found that I couldn't scroll in my Animated.ScrollView if the element I initiated the scrolling action from was draggable (no handler) or was Sortable.Touchable.

I believe this is because you are using GestureDetector which intercepts the scroll event (described here).

I got around this issue by using the drag handler and using a Pressable instead of the Sortable.Touchable.

Steps to reproduce

  1. Create a Sortable.Grid within an Animated.ScrollView
  2. Don't implement drag handlers
  3. Using a mobile device on web, attempt to scroll down the Animated.Scrollview starting over one of the sortable grid elements. The scroll view will not move (note that if the scroll view is already actively scrolling you won't see this behavior).

Code snippet, Snack or GitHub repository link

N/A

React Native Sortables version

1.9.4

Reanimated version

3.17.3

React Native Gesture Handler version

2.24.0

React Native version

0.79.2

Platforms

Web

Architecture

None

Workflow

None

Device

No response

Acknowledgements

Yes

dsessoms avatar Feb 12 '26 06:02 dsessoms

:tada: This issue has been resolved in version 1.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

MatiPl01 avatar Jul 23 '26 21:07 MatiPl01