mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
90879a07ba
Fixes the bug when we scroll both scrollable box and page.
33 lines
800 B
HTML
33 lines
800 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="reference/scroll-using-mousewheel-event-ref.html" />
|
|
<style>
|
|
body {
|
|
border: 1px solid black;
|
|
margin: 0;
|
|
}
|
|
|
|
#scrollable {
|
|
width: 100px;
|
|
height: 100px;
|
|
overflow: scroll;
|
|
border: 1px solid black;
|
|
margin-bottom: 2000px;
|
|
}
|
|
|
|
#content {
|
|
width: 200px;
|
|
height: 200px;
|
|
background-color: magenta;
|
|
}
|
|
</style>
|
|
<script src="include.js"></script>
|
|
<div id="scrollable"><div id="content"></div></div>
|
|
<script>
|
|
test(() => {
|
|
internals.wheel(10, 10, 0, 1000);
|
|
const scrollable = document.getElementById("scrollable");
|
|
println("scrollable.scrollTop: " + scrollable.scrollTop);
|
|
println("window.scrollY: " + window.scrollY);
|
|
});
|
|
</script>
|