зеркало из https://github.com/mozilla/pjs.git
Bug 487670: Cleanup errors in InputHandler.js, r=bcombee
This commit is contained in:
Родитель
2b8aadba15
Коммит
aabbede213
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче