From aabbede213967d4280645db0f1731542a9612da2 Mon Sep 17 00:00:00 2001 From: Mark Finkle Date: Thu, 9 Apr 2009 16:09:27 -0400 Subject: [PATCH] Bug 487670: Cleanup errors in InputHandler.js, r=bcombee --- mobile/chrome/content/InputHandler.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mobile/chrome/content/InputHandler.js b/mobile/chrome/content/InputHandler.js index a7491ac11ae..bb68c3aacc1 100644 --- a/mobile/chrome/content/InputHandler.js +++ b/mobile/chrome/content/InputHandler.js @@ -318,7 +318,7 @@ ChromeInputModule.prototype = { [sX, sY] = dragData.lockMouseMove(sX, sY); if (this._targetScrollbox) this._targetScrollbox.scrollBy(dragData.sX - sX, dragData.sY - sY); - this.setDragPosition(sX, sY); + dragData.setDragPosition(sX, sY); }, _onMouseDown: function _onMouseDown(aEvent) { @@ -402,7 +402,7 @@ ChromeInputModule.prototype = { if (!dragData.sX) dragData.setDragPosition(aEvent.screenX, aEvent.screenY); - let [sX, sY] = dragData.lockMouseMove(aEvent.screenX, aEvent.screenY); + [sX, sY] = dragData.lockMouseMove(aEvent.screenX, aEvent.screenY); dragData.detectEarlyDrag(sX, sY); @@ -506,10 +506,10 @@ KineticData.prototype = { if (self._speedX == 0 && self._speedY == 0) self.endKinetic(); } - }; + }; this._kineticTimer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer); - //initialize our timer with updateInterval + //initialize our timer with updateInterval this._kineticTimer.initWithCallback(callback, this._updateInterval, this._kineticTimer.TYPE_REPEATING_SLACK);