Bug 523223: Regression: kinetic panning is stalled [r=mark.finkle]
--- 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});
}
};