swiftcarrot / react-ui-tree

React tree component with drag & drop
https://swiftcarrot.github.io/react-ui-tree/
MIT License
759 stars 196 forks source link

getting wrong mouse position if page is scrolled while dragging #36

Open hangy233 opened 8 years ago

hangy233 commented 8 years ago

This can be reproduced in the example, resize your browser window and make it shorter than the tree. if you scroll the window when you are dragging a node. The node will go to a wrong position. Solutions could be stop drag and drop the node at where it is when start a scroll or count the scrollTop value in the drag handler.

hangy233 commented 8 years ago

made a pull request #37