mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 23:52:57 +00:00
That allow EventHandler process wheel event on corresponding navigable. For top-level navigable that means IPC call to let chrome know about scrollbar position update. Fixes https://github.com/SerenityOS/serenity/issues/23599 Fixes https://github.com/SerenityOS/serenity/issues/23493 Fixes https://github.com/SerenityOS/serenity/issues/23966
54 lines
1 KiB
HTML
54 lines
1 KiB
HTML
<!DOCTYPE html>
|
|
<style>
|
|
body {
|
|
overflow: scroll;
|
|
}
|
|
|
|
.box {
|
|
height: 300px;
|
|
width: 200px;
|
|
}
|
|
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
|
|
.green {
|
|
background-color: green;
|
|
}
|
|
|
|
.cyan {
|
|
background-color: cyan;
|
|
}
|
|
|
|
.pink {
|
|
background-color: pink;
|
|
}
|
|
|
|
.blue {
|
|
background-color: blue;
|
|
}
|
|
</style>
|
|
<div class="container">
|
|
<div class="box red"></div>
|
|
<div class="box green"></div>
|
|
<div class="box blue"></div>
|
|
<div class="box pink"></div>
|
|
<div class="box cyan"></div>
|
|
<div class="box red"></div>
|
|
<div class="box green"></div>
|
|
<div class="box blue"></div>
|
|
<div class="box pink"></div>
|
|
<div class="box cyan"></div>
|
|
</div>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
const container = document.querySelector(".container");
|
|
window.onscroll = () => {
|
|
println(`new scrollY: ${window.scrollY}`);
|
|
done();
|
|
};
|
|
internals.wheel(50, 50, 0, 100);
|
|
});
|
|
</script>
|