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

After doing a deep dive into this I feel like if the pointerup was captured we should send the click to blue. I think this makes sense even in cases when the capture has been explicitly released or lost because the click is not independently targeted but depends on the down and up events. Since the up which resulted in the click was captured - I think it's reasonable that this becomes the click target.

I don't think we need to send boundary events because we already don't send boundary events that would be implied by the click going to the common ancestor. E.g. without pointer capture pressing down on green and up on blue will send click to gray without sending mouseout to blue.

One use case we came up with is if you had a slider with a thumb but you wanted to give it a generous hit testing area by setting pointer capture. It seems reasonable that the click should go to the thumb whether the initial down event actually hit it or not.

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


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

Received on Wednesday, 14 June 2023 20:02:18 UTC