Bug 232339

Summary: setPointerCapture should maintain the mouse cursor until pointerup or releasePointerCapture
Product: WebKit Reporter: Caleb Hearon <caleb>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Enhancement CC: graouts, hi, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

Caleb Hearon
Reported 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/
Attachments
Radar WebKit Bug Importer
Comment 1 2021-11-02 15:12:17 PDT
Note You need to log in before you can comment on or make changes to this bug.