taye / interact.js

JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+)
http://interactjs.io/
MIT License
12.19k stars 782 forks source link

Can't drag element when wrap drag item inside div #1031

Closed doanhoangvu98 closed 3 months ago

doanhoangvu98 commented 4 months ago

If you have questions about the API that aren't answered in the docs or FAQ, try asking in the Gitter chatroom or on Stackoverflow.

If you've found something that looks like a bug, include a link to a minimal demo on JSFilddle, Codepen with instructions to reproduce the bug with and roughly follow the following issue description format:

Expected behavior

Want to wrap drag item inside div and I would like drag any element into dragzone

Actual behavior

image

https://github.com/taye/interact.js/assets/42468423/911d37f8-9bda-4abb-b7b9-606cbc70d6f4

System configuration

interact.js version: Browser name and version: Operating System:

taye commented 3 months ago

Because this issue doesn't indicate a bug or request a feature, it's more suited to be posted as a question on Stack Overflow or Gitter.