Bug 605121 - Panning does not look at the originalTarget [r=mfinkle]
authorVivien Nicolas <21@vingtetun.org>
Thu, 31 Mar 2011 03:01:51 +0200
changeset 67558 321da6243809c3a73e17c529f933a1fba50e544a
parent 67557 6ec43c0829382dee5534be71cba2b37fc51a159b
child 67559 134c6b4fcb8cfa46209f621dfddfda5a5099471e
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs605121
Bug 605121 - Panning does not look at the originalTarget [r=mfinkle]
mobile/chrome/content/input.js
--- a/mobile/chrome/content/input.js
+++ b/mobile/chrome/content/input.js
@@ -190,17 +190,17 @@ MouseModule.prototype = {
     }
     dragData.reset();
     this.dX = 0;
     this.dY = 0;
 
     // walk up the DOM tree in search of nearest scrollable ancestor.  nulls are
     // returned if none found.
     let [targetScrollbox, targetScrollInterface, dragger]
-      = ScrollUtils.getScrollboxFromElement(aEvent.target);
+      = ScrollUtils.getScrollboxFromElement(aEvent.originalTarget);
 
     // stop kinetic panning if targetScrollbox has changed
     if (this._kinetic.isActive() && this._dragger != dragger)
       this._kinetic.end();
 
     this._targetScrollbox = targetScrollInterface ? targetScrollInterface.element : targetScrollbox;
     this._targetScrollInterface = targetScrollInterface;