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 2957 e0842af24ca7f905037dd792ac1bc2e0bda2d68f
parent 2956 796cf934cfd166d16de41d7ab20167a28087f2be
child 2958 bfd90c18b93914077249540913cec926a1ac9897
push id2493
push uservnicolas@mozilla.com
push dateThu, 31 Mar 2011 01:02:07 +0000
reviewersmfinkle
bugs605121
Bug 605121 - Panning does not look at the originalTarget [r=mfinkle]
chrome/content/input.js
--- a/chrome/content/input.js
+++ b/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;