Bug 456658 - speed up kinetic pans r=stuart

This commit is contained in:
Brad Lassey 2008-09-23 20:02:45 -04:00
parent 96455ccbe8
commit d7f2bf2e4d

View File

@ -868,9 +868,9 @@
// 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));