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.

Endless scrolling ignores dragging

See original GitHub issue

Steps to reproduce:

  1. Set a list with elements so that not all of them fits the screen (you have a scroll in the scrollview)
  2. Start dragging an item
  3. Drag it to the bottom (or top) of the scroll view
  4. See that scroll is scrolling endlessly and any movement of the item is ignored.

See gif:

scrolling-issue

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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
lesniakaniacommented, Feb 12, 2017

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

0reactions
chetstonecommented, Jul 1, 2017

Closing duplicate #38

Read more comments on GitHub >

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

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