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 ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user