Bug 232339 - setPointerCapture should maintain the mouse cursor until pointerup or releasePointerCapture
Summary: setPointerCapture should maintain the mouse cursor until pointerup or release...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-26 15:11 PDT by Caleb Hearon
Modified: 2021-11-02 15:12 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Hearon 2021-10-26 15:11:51 PDT
Both Firefox and Chrome use the CSS cursor of the element subject to the setPointerCapture call until releasePointerCapture or pointerup, no matter what other elements are under the mouse while it moves. This isn't directly mentioned in the W3C spec, but it does fit with the idea of the element taking over events.

Currently in Safari you have to throw up an overlay to keep the cursor the same, and even that doesn't work when the mouse goes out of the browser window.

This would be really great to have in Safari as it gives it a smoother/native feel.

Test case: https://jsfiddle.net/v4yteo6a/
Comment 1 Radar WebKit Bug Importer 2021-11-02 15:12:17 PDT
<rdar://problem/84949289>