matter-js icon indicating copy to clipboard operation
matter-js copied to clipboard

The startdrag event of dragging a body does not trigger after losing focus.

Open renshengyiyijihe opened this issue 1 year ago • 0 comments

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

renshengyiyijihe avatar Apr 08 '24 04:04 renshengyiyijihe