[pointerevents] How pointer capture should behave on draggable element? (#338)

EdgarChen has just created a new issue for https://github.com/w3c/pointerevents:

== How pointer capture should behave on draggable element? ==
For example,
```html
<div id="target" draggable="true">drag me</div>
<script>
let target = document.getElementById("target");
target.addEventListener("pointerdown", function(e) {
  target.setPointerCapture(e.pointerId);
});
</script>
```
https://codepen.io/edgarchen-the-decoder/pen/wvWaNOd

Spec seems to not define how pointer capture should behave while setting pointer capture on a draggable element. 
Both Chrome and Safari would stop pointer capture while dnd is triggered, Firefox basically does the same thing in most of the time, there is an inconsistency if we set pointer capture in `mousedown` handler, see https://bugzilla.mozilla.org/show_bug.cgi?id=1669673, but we plan to fix that to have consistent behavior.

Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/338 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 12 October 2020 12:41:06 UTC