Bug 523223: Regression: kinetic panning is stalled [r=mark.finkle]
authorBenjamin Stover <webapps@stechz.com>
Mon, 19 Oct 2009 17:38:32 -0400
changeset 65685 be0d68e96d527925ae267a684942ff412116854b
parent 65684 a8fb14782bfa9d53e45cce93e56e49c8c7a39032
child 65686 cd58901135376d2c084876bdc3a5237b782cacd0
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)
reviewersmark
bugs523223
Bug 523223: Regression: kinetic panning is stalled [r=mark.finkle]
mobile/chrome/content/InputHandler.js
--- a/mobile/chrome/content/InputHandler.js
+++ b/mobile/chrome/content/InputHandler.js
@@ -1096,17 +1096,17 @@ KineticController.prototype = {
     let now = t || Date.now();
  
     // avoid adding duplicates which would otherwise slow down the speed
     if (mbLength > 0) {
       let mbLast = this.momentumBuffer[mbLength - 1];
       if ((mbLast.sx == sx && mbLast.sy == sy) || mbLast.t == now) {
         mbLast.sx = sx;
         mbLast.sy = sy;
-        mbLast.t = t;
+        mbLast.t = now;
         return;
       }
     }
 
     // Util.dumpLn("adding t:", now, ", sx: ", sx, ", sy: ", sy);
     this.momentumBuffer.push({'t': now, 'sx' : sx, 'sy' : sy});
   }
 };