Bug 1304729 - Followup to fix careless mistake. r?botond draft
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 23 Sep 2016 12:03:00 -0400
changeset 417091 4b0ecb4296a5266d2cc028d1728550f0a18356ff
parent 417090 8f274c32c95659bdef97c3dd94dee4bfa0ae2e97
child 532024 bd4fced66349ab7e4b19aa4516043017adaebf4c
push id30332
push userkgupta@mozilla.com
push dateFri, 23 Sep 2016 16:03:26 +0000
reviewersbotond
bugs1304729
milestone52.0a1
Bug 1304729 - Followup to fix careless mistake. r?botond MozReview-Commit-ID: 5gsVh4JgroW
gfx/layers/apz/src/AsyncPanZoomController.cpp
--- a/gfx/layers/apz/src/AsyncPanZoomController.cpp
+++ b/gfx/layers/apz/src/AsyncPanZoomController.cpp
@@ -1435,17 +1435,17 @@ nsEventStatus AsyncPanZoomController::On
   {
     ReentrantMonitorAutoEnter lock(mMonitor);
     ScheduleComposite();
     RequestContentRepaint();
     UpdateSharedCompositorFrameMetrics();
   }
 
   // Non-negative focus point would indicate that one finger is still down
-  if (aEvent.mFocusPoint.x != -1 && aEvent.mFocusPoint.y != -1) {
+  if (aEvent.mLocalFocusPoint.x != -1 && aEvent.mLocalFocusPoint.y != -1) {
     mPanDirRestricted = false;
     mX.StartTouch(aEvent.mLocalFocusPoint.x, aEvent.mTime);
     mY.StartTouch(aEvent.mLocalFocusPoint.y, aEvent.mTime);
     SetState(TOUCHING);
   } else {
     // Otherwise, handle the fingers being lifted.
     ReentrantMonitorAutoEnter lock(mMonitor);