mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 817671 - Fix window scrolling. r=blassey
This commit is contained in:
parent
7dd61b21af
commit
faffc5bcdd
@ -192,12 +192,12 @@ function scroll(aMessage) {
|
||||
if (!horiz && content.scrollMaxY &&
|
||||
((page > 0 && content.scrollY < content.scrollMaxY) ||
|
||||
(page < 0 && content.scrollY > 0))) {
|
||||
content.scroll(0, content.innerHeight);
|
||||
content.scroll(0, content.innerHeight * page + content.scrollY);
|
||||
return true;
|
||||
} else if (horiz && content.scrollMaxX &&
|
||||
((page > 0 && content.scrollX < content.scrollMaxX) ||
|
||||
(page < 0 && content.scrollX > 0))) {
|
||||
content.scroll(content.innerWidth, 0);
|
||||
content.scroll(content.innerWidth * page + content.scrollX);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user