Files
ladybird/Tests/LibWeb/Text/expected/HTML/drag-and-drop-element.txt
Zaggy1024 22c1b72588 LibWeb: Prevent dragstart after a prevented mousedown or dragstart
Also, explicitly prevent drag events from firing when the context menu
opens. This will only be the case on macOS, since its context menu is
opened by Ctrl+mousedown. This replaces the prior exception preventing
drag events when Ctrl is held during mousedown.

Fixes #9018 and #9019
2026-04-22 07:34:18 -04:00

48 lines
984 B
Plaintext

Drag div:
source: dragstart
target: dragenter
types: text/plain
target: dragover
types: text/plain
target: drop
types: text/plain
text/plain: 'hello'
text/uri-list: ''
source: dragend:copy
Drag non-draggable div:
nodrag: mousedown
nodrag: mousemove
nodrag: mouseup
Drag link:
dragstart
types: text/uri-list
target: dragenter
types: text/uri-list
target: dragover
types: text/uri-list
target: drop
types: text/uri-list
text/plain: ''
text/uri-list: 'https://example.com/'
Drag image:
dragstart
types: text/uri-list
target: dragenter
types: text/uri-list
target: dragover
types: text/uri-list
target: drop
types: text/uri-list
text/plain: ''
text/uri-list: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR4nGP4z8DwHwAFAAH/iZk9HQAAAABJRU5ErkJggg=='
Dragstart cancelled:
source: dragstart
dragstart (cancelling)
Mousedown cancelled (prevents dragstart):
source: mousedown (cancelling)