Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 733 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 733 Bytes

React DnD Touch Backend monitor.isOver Example

Note: This issue has now been fixed in version 0.3.0 of the react-dnd-touch-backend. Leaving this example as 0.2.7 for historical purposes.

History

A simple example that shows monitor.isOver({ shallow: true }) doesn't behave as expected. Based on the React DnD docs and this example when { shallow: true } the highest DOM node should return true for monitor.isOver.

Instead it returns true for the bottom DOM node.

Starting server

> npm start Then navigate to http://localhost:3000/