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

@@ -13,8 +13,8 @@
<script src="../include.js"></script>
<script>
test(() => {
if (window.internals && window.internals.movePointerTo)
internals.movePointerTo(50, 50);
if (window.internals && window.internals.mouseMove)
internals.mouseMove(50, 50);
let s = getComputedStyle(myShadowHost);
println("hovered bg: " + s.backgroundColor);