matter-js
matter-js copied to clipboard
The startdrag event of dragging a body does not trigger after losing focus.
I want to implement a method where a body in the canvas can be dragged out of the canvas area and created as a dom element. After the dom is created successfully, the first time the body is dragged, the startdrag event will not be triggered. It will only start to be triggered the second time. What's the matter? Is there any solution?
https://github.com/liabru/matter-js/assets/66071711/f579510e-ce0a-49b5-9a84-13ee7f163b4d