You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that this is related to the pointer.capture option. If capturing is disabled, then the shadowed dom button click is triggered. I updated the sandbox with this case.
I'm not sure if this is intentional since it only happens with the shadow dom
Hm use-gesture doesn't do any magic, it just tries to assign listeners to elements. It's possible that setPointerCapture which is used when pointer.capture is set doesn't work with shadowed elements I'll dig into this deeper when I have time, but I'm not sure the lib can do anything about it.
Describe the bug
Binding a drag gesture listener on the parent of a shadow dom host prevents onClick listener within shadow dom from firing.
This does work with firefox, but not the Chrome version listed below.
Sandbox or Video
https://codesandbox.io/s/red-cdn-t8hkjm?file=/src/App.js
Information:
Checklist:
touch-action: none
to the draggable element.The text was updated successfully, but these errors were encountered: