clauderic / clauderic/react-sortable-hoc

Mouse scroll breaks offset on drag and drop

Open
#424 3 comments 10 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.9k
Forks
959
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:
1. drag an item,
2. scroll the mouse wheel while holding the left mouse button,
3. the item you're holding is trying to move to a wrong place, how far off is it depends on how far did you scroll down / up.

It's broken even in the example from README here: https://clauderic.github.io/react-sortable-hoc/#/advanced/window-as-scroll-container?_k=6fdidj

Tested on 0.6.8 and 0.8.3 and this link above, happens on both Firefox and Chromium (desktop). Because of this bug I can't move some items in my project at all since they are tall enough I need to scroll but then they move with that weird offset so I'd have to drag them off screen to actually move them.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.