mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
23 lines
455 B
HTML
23 lines
455 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
body {
|
|
margin: 0px;
|
|
padding: 5px;
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
</style>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
document.body.onauxclick = () => {
|
|
println("auxclick event fired");
|
|
done();
|
|
};
|
|
|
|
window.onload = () => {
|
|
internals.click(10, 10, 1, internals.BUTTON_MIDDLE);
|
|
};
|
|
});
|
|
</script>
|