Bug 456658 - speed up kinetic pans r=stuart
authorBrad Lassey <blassey@mozilla.com>
Tue, 23 Sep 2008 20:02:45 -0400
changeset 64851 072575b7f3e24f252be700fc4e5ba2d6c8130b90
parent 64850 b27994e68669cef8b8d662d6b4ea58bcc8430c3e
child 64852 aceb6e4f850ab3af89f20e105bc72c0ed295663f
push idunknown
push userunknown
push dateunknown
reviewersstuart
bugs456658
Bug 456658 - speed up kinetic pans r=stuart
mobile/chrome/content/deckbrowser.xml
--- a/mobile/chrome/content/deckbrowser.xml
+++ b/mobile/chrome/content/deckbrowser.xml
@@ -863,19 +863,19 @@
               this.dragData.originalX = this.dragData.dragX;
               this.dragData.originalY = this.dragData.dragY;
 
 
               // s = S0 + 0.5 * v0^2 * 1/CoK); s = position, s0 = initial pos
               // v0 = initial velocity, CoK = Coefficient of Kinetic friction
               // All in page coords
               let idealDestScreenX = this.dragData.dragX  + Math.abs(this.dragData.velocityX) 
-                                     * this.dragData.velocityX * 100;
+                                     * this.dragData.velocityX * 200;
               let idealDestScreenY = this.dragData.dragY + Math.abs(this.dragData.velocityY) 
-                                     * this.dragData.velocityY * 100
+                                     * this.dragData.velocityY * 200
           
               let [destPageX, destPageY] =  this._constrainPanCoords(-this._screenToPage(idealDestScreenX),
                                                                      -this._screenToPage(idealDestScreenY));
 
 
               // Convert to screen coords
               this.dragData.destinationX = -this._pageToScreen(destPageX);
               this.dragData.destinationY = -this._pageToScreen(destPageY);