Bug 1304729 - Ensure we schedule a composite if we change the scroll position during a pinch gesture with no zoom change. r=botond

MozReview-Commit-ID: AF2aoJZ1ssG
This commit is contained in:
Kartikaya Gupta 2016-09-22 14:53:56 -04:00
Родитель fa088e54e9
Коммит 83607aede9
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -1394,8 +1394,6 @@ nsEventStatus AsyncPanZoomController::OnScale(const PinchGestureInput& aEvent) {
ScrollBy(neededDisplacement);
}
ScheduleComposite();
// We don't want to redraw on every scale, so throttle it.
if (!mPinchPaintTimerSet) {
const int delay = gfxPrefs::APZScaleRepaintDelay();
@ -1413,6 +1411,10 @@ nsEventStatus AsyncPanZoomController::OnScale(const PinchGestureInput& aEvent) {
UpdateSharedCompositorFrameMetrics();
}
// We did a ScrollBy call above even if we didn't do a scale, so we
// should composite for that.
ScheduleComposite();
mLastZoomFocus = focusPoint;
}