Bug 266464 - mousedown is lost when clicking on the resize corner of an element with the resize CSS rule set
Summary: mousedown is lost when clicking on the resize corner of an element with the r...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-12-15 00:53 PST by Artur Signell
Modified: 2023-12-22 00:54 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artur Signell 2023-12-15 00:53:37 PST
A mousedown event on the resize corner of an element with e.g. `resize: both` can be used to know that a resizing operation has started. In Chrome and Firefox, the mousedown is fired normally when you start resizing the element. In Safari, there is no mousedown event ever.

See https://jsfiddle.net/7dygb36k/11/

If you click inside the element, it logs "mousedown", "mouseup", "click" as expected
If you click on the resize corner, it logs "mouseup", "click"
Comment 1 Artur Signell 2023-12-15 23:47:35 PST
Seems pretty clear from the code here https://github.com/WebKit/WebKit/blob/931edb0a5a560a009a8ca6a23f39aa4bff6d6a5a/Source/WebCore/page/EventHandler.cpp#L1900-L1915 that mousedown is not fired
Comment 2 Radar WebKit Bug Importer 2023-12-22 00:54:14 PST
<rdar://problem/120034785>