Bug 817671 - Fix window scrolling. r=blassey

This commit is contained in:
Eitan Isaacson 2012-12-05 12:54:37 -08:00
parent 7dd61b21af
commit faffc5bcdd

View File

@ -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;
}