Re: [pointerevents] Clarify what event is `userEvent` to consider `click`/`auxclick` event target after `touchend` (or `pointerup`) (#508)

> > No if pointerdown listener makes different element from pointerdown/touchstart/touchend target capture the pointer. [The expected result of line 192 of my test](https://github.com/web-platform-tests/wpt/blob/f18377726f412c270c3e3ed98c0b9f1c65ec2eac/pointerevents/pointerevent_click_during_parent_capture.html#L192) passed on Chrome and Firefox.
> 
> If pointerdown captures the pointer to a different element, pointerup should "target" (via capture) that different element too though.

Yeah, however, both Chrome and Firefox dispatch `click` event on the `#target` instead of `#parent` which is captured and is the target of `pointerup`. So, both browsers treat `userEvent` as the preceding `touchend` or `mouseup`.

-- 
GitHub Notification of comment by masayuki-nakano
Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/508#issuecomment-2179665752 using your GitHub account


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

Received on Thursday, 20 June 2024 01:44:57 UTC