LibWeb: Rework Internals' mouse control

Instead of defining somewhat high level mouse actions, allow granular
control of mouse clicks and mouse down/up/move events. We will want to
simulate things like holding down a mouse button after double clicking
and then dragging the mouse to another position in the future, and this
enables that.
This commit is contained in:
Jelle Raaijmakers
2026-02-05 11:47:32 +01:00
committed by Sam Atkins
parent 108ef5e088
commit f55fe69d4d
Notes: github-actions[bot] 2026-02-06 14:19:42 +00:00
19 changed files with 106 additions and 77 deletions

View File

@@ -23,11 +23,11 @@
println('Not hovering: ' + inner.clientWidth);
// Move mouse over .outer
internals.movePointerTo(80, 80);
internals.mouseMove(80, 80);
println('Hovering: ' + inner.clientWidth);
// Move mouse away again
internals.movePointerTo(200, 200);
internals.mouseMove(200, 200);
println('Not hovering: ' + inner.clientWidth);
});
</script>