Bug 266464
Summary: | mousedown is lost when clicking on the resize corner of an element with the resize CSS rule set | ||
---|---|---|---|
Product: | WebKit | Reporter: | Artur Signell <artur> |
Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | a_protyasha, karlcow, webkit-bug-importer |
Priority: | P2 | Keywords: | BrowserCompat, InRadar |
Version: | Safari Technology Preview | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Artur Signell
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"
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Artur Signell
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
Radar WebKit Bug Importer
<rdar://problem/120034785>