mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
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:
committed by
Sam Atkins
parent
108ef5e088
commit
f55fe69d4d
Notes:
github-actions[bot]
2026-02-06 14:19:42 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/f55fe69d4d4 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7771 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user