1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:48:11 +00:00

LibWeb: Add internals.wheel() to simulate mouse wheel events

This function allows us to write tests for scrolling scenarios where
the events are processed by the EventHandler.
This commit is contained in:
Aliaksandr Kalenik 2024-02-09 18:14:53 +01:00 committed by Andreas Kling
parent e38ccebfc8
commit 40246adfb9
5 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<style>
.item {
width: 100px;
height: 100px;
box-sizing: border-box;
border: 1px solid black;
}
</style>
<div class="item">2</div>
<div class="item">3</div>
<div class="item">4</div>