Endless scrolling ignores dragging
See original GitHub issueSteps to reproduce:
- Set a list with elements so that not all of them fits the screen (you have a scroll in the scrollview)
- Start dragging an item
- Drag it to the bottom (or top) of the scroll view
- See that scroll is scrolling endlessly and any movement of the item is ignored.
See gif:
I tried to debug it, but all I noticed is that onPanResponderMove
is not executed in this case, because component is constantly rerendering (probably because of the setState
in the checkTargetElement
) and scrollAnimation
method is invoking all the time.
setState -> render -> scrollAnimation -> setState -> render -> scrollAnimation -> ...
and no onPanResponderMove
node: v5.9.0
npm: 3.10.8
react-native: 0.37
(but previously I had 0.31
and the same issues)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Infinite Scroller - doesn't work on side bar drag - Stack Overflow
The problem is, it only works when using a mouse wheel, if you grab the side bar and scroll down it doesn't work,...
Read more >#GodotEngine - Endless Scrolling Background - YouTube
An endless scrolling background is the bread and butter of 2D game development. With this technique, we can make space shooters, ...
Read more >Prototype scrolling with overflow behavior - Figma Help Center
Open the Design panel in the right sidebar. Hover over the frame's bounds in the canvas until the cursor appears. Drag the bounding...
Read more >ag-Grid Row Models: Infinite Scrolling
Infinite scrolling allows the grid to lazy load rows from the server ... Once the total record count is known, the lastRow parameter...
Read more >Infinite Scroll with ScrollRect - Unity Forum
Imagine I have a list of items scrolling in an infinite manner but I want to disable the dragging just for some of...
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 FreeTop 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
Top GitHub Comments
Yes, it’s a duplicate, sorry. Unfortunately I didn’t find any other component, so I implemented my own one…: https://github.com/lesniakania/react-native-draggable-board
Closing duplicate #38