Re: [pointerevents] Clarify what the target of the click event should be after capturing pointer events (#356)

> But in both cases, `pointerup` is dispatched before release and `click` is dispatched after release.

This is the question really. If you never explicitly release capture, shouldn't the click be captured as well? I.e. dispatched to #c in my second example. In fact it seems the spec [explicitly says that the click should still be captured under implicit release of pointer capture](https://w3c.github.io/pointerevents/#implicit-release-of-pointer-capture:~:text=click%20SHOULD%20be%20fired%20before%20lostpointercapture):

> If the user agent supports firing the click event (see compatibility mouse events), and if in an implicit release scenario both click and lostpointercapture events are fired, click SHOULD be fired before lostpointercapture.

As such, it seems that the click should be captured and #c should be the click target in my second example.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/356#issuecomment-877839132 using your GitHub account


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

Received on Sunday, 11 July 2021 17:59:09 UTC