Bug 1067128 - [e10s] _setupSwipeGesture() tries to access content when scrolling down r=spohl

This commit is contained in:
Tim Taubert 2014-09-15 21:49:47 +02:00
parent 543e54d2f8
commit 56297c76f1

View File

@ -189,12 +189,12 @@ let gGestureSupport = {
let isVerticalSwipe = false;
if (aEvent.direction == aEvent.DIRECTION_UP) {
if (content.pageYOffset > 0) {
if (gMultiProcessBrowser || content.pageYOffset > 0) {
return false;
}
isVerticalSwipe = true;
} else if (aEvent.direction == aEvent.DIRECTION_DOWN) {
if (content.pageYOffset < content.scrollMaxY) {
if (gMultiProcessBrowser || content.pageYOffset < content.scrollMaxY) {
return false;
}
isVerticalSwipe = true;