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

Gestures not working in ShadowDom #1027

Open chladog opened 6 months ago

chladog commented 6 months ago

Reproduction: https://stackblitz.com/edit/stackblitz-starters-6pced9?file=src%2Fmain.ts

Expected behavior

The rotation gesture should work on an element inside ShadowDom. When we comment out shadowdom activator on :15, it works as expected.

Actual behavior

The rotation won't happen unless second touchstart happens outside ShadowDom bounding rect.

System configuration

interact.js version: latest Browser name and version: chrome latest