Bug 485962: Kinetic scrolling was disabled with lock-panning patch, r=stuart
authorBen Combee <combee@mozilla.com>
Mon, 30 Mar 2009 14:18:23 -0400
changeset 65152 292578d16bfa06df07ff21104912ffa83411d280
parent 65151 f6a0c11e01d4ab813c4c1f109e55c287ee4796e6
child 65153 84d970d8d3cbdb7be7f3570f2125c5d36a17206a
push idunknown
push userunknown
push dateunknown
reviewersstuart
bugs485962
Bug 485962: Kinetic scrolling was disabled with lock-panning patch, r=stuart
mobile/chrome/content/InputHandler.js
--- a/mobile/chrome/content/InputHandler.js
+++ b/mobile/chrome/content/InputHandler.js
@@ -444,16 +444,19 @@ function KineticData() {
 
 KineticData.prototype = {
   reset: function reset() {
     if (this.kineticHandle != -1) {
       window.clearInterval(this.kineticHandle);
       this.kineticHandle = -1;
     }
 
+    this.kineticStepSize = 15;
+    this.kineticDecelloration = 0.004;
+    this.momentumBufferSize = 3;
     this.momentumBuffer = [];
     this.momentumBufferIndex = 0;
     this.lastTime = 0;
     this.kineticDuration = 0;
     this.kineticDirX = 0;
     this.kineticDirY = 0;
     this.kineticStep  = 0;
     this.kineticStartX  = 0;