[Webkit-unassigned] [Bug 254046] New: `dragend` events have incorrect coordinates
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 16 14:48:07 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=254046
Bug ID: 254046
Summary: `dragend` events have incorrect coordinates
Product: WebKit
Version: Safari Technology Preview
Hardware: Mac (Intel)
OS: macOS 13
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: avi at drissman.com
CC: wenson_hsieh at apple.com
Created attachment 465467
--> https://bugs.webkit.org/attachment.cgi?id=465467&action=review
a sample illustrating the issue
For an item that is being dragged, as the drag proceeds, “drag” events are fired, and then, when the drag is complete, a “dragend” event is fired.
In Safari Version 16.3 (18614.4.6.1.6) as well as Safari Technology Preview Release 165 (Safari 16.4, WebKit 18616.1.4.4), the coordinates in the “dragend” event are incorrect. They should roughly match the coordinates of the last move.
To repro:
0. download the attached repro file (which logs the coordinates passed to the event listeners)
1. open the file
2. open the console for the page
3. drag the block of text on the page
4. stop the drag
Expected:
- The “dragend” event coordinates should roughly match the coordinates of the last “drag” event coordinates
Actual:
- The “dragend” event coordinates do not match the coordinates of the last “drag” event coordinates, and are very incorrect in relation to the client (e.g. if you drop near the upper left corner of the screen, the last “drag” event coordinates will be small and single-digit while the “dragend” coordinates will be in the 300-900 range)
This is reproducible on my iMac Pro, with aforementioned Safari and STP, on macOS 13.2.1 (22D68).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230316/47a67854/attachment.htm>
More information about the webkit-unassigned
mailing list