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.32k stars 783 forks source link

Rotation example not work in web component #990

Open chunlinyao opened 1 year ago

chunlinyao commented 1 year ago

Use interactjs in web component with shadowRoot. the rotation example sometime works. But is difficult to start. If I start touch with two finger at same time, it not work. Start with fast interlived taps two fingers followed by move can rotate. (https://codepen.io/chunlinyao/pen/jOKepEa)

Expected behavior

Can rotate by two fingers.

Actual behavior

Very difficult to start. Start with fast interlived taps two fingers followed by move can rotate.

System configuration

interact.js version is 1.10.17: Browser name and version Chrome 107.0.5304.141: Operating System Android 10: