Skip to content

Tags: GoodNotes/react-dnd

Tags

v16.0.2-dev.1

Toggle v16.0.2-dev.1's commit message

Verified

This commit was signed with the committer’s verified signature.
kateinoigakukun Yuta Saito
Add only single event listener to body to handle touchmove events

`connectDropTarget` added a touchmove event listener to the body for
each target node, which added performance overhead scaling with the
number of target nodes. This commit changes it to add only one
event listener to the body, which handles touchmove events for all
target nodes.