[Webkit-unassigned] [Bug 214970] New: [iOS] Calling preventDefault() in a pointerdown event handler for an <img> does not prevent system drag
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 30 08:48:14 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=214970
Bug ID: 214970
Summary: [iOS] Calling preventDefault() in a pointerdown event
handler for an <img> does not prevent system drag
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: UI Events
Assignee: webkit-unassigned at lists.webkit.org
Reporter: graouts at webkit.org
Consider this simple markup:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAQAAADa613fAAAAaUlEQVR42u3PQREAAAgDoK1/aI3g34MGNJMXKiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiJyWXmfZAEMq/KNAAAAAElFTkSuQmCC" onpointerdown="event.preventDefault()">
On macOS, the fact that `event.preventDefault()` is called while handling the `pointerdown` event makes it so that the image cannot be dragged. On iOS the image is draggable after a long press, but I think it should not be to match both the macOS behavior and developer expectation.
--
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/20200730/596a8d5c/attachment-0001.htm>
More information about the webkit-unassigned
mailing list