mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1480735 - Replace MousePosTracker._windowUtils with window.windowUtils. r=dao
MozReview-Commit-ID: AcADGJH4r2R --HG-- extra : rebase_source : 0f2613fd6c5da81a7abf3f16b36d365b96be4ff6
This commit is contained in:
parent
6bf788e479
commit
b85f1c8fe9
@ -7710,11 +7710,6 @@ var MousePosTracker = {
|
||||
_y: 0,
|
||||
_mostRecentEvent: null,
|
||||
|
||||
get _windowUtils() {
|
||||
delete this._windowUtils;
|
||||
return this._windowUtils = window.windowUtils;
|
||||
},
|
||||
|
||||
/**
|
||||
* Registers a listener, and then waits for the next refresh
|
||||
* driver tick before running the listener to see if the
|
||||
@ -7788,7 +7783,7 @@ var MousePosTracker = {
|
||||
let event = this._mostRecentEvent;
|
||||
|
||||
if (event) {
|
||||
let fullZoom = this._windowUtils.fullZoom;
|
||||
let fullZoom = window.windowUtils.fullZoom;
|
||||
this._x = event.screenX / fullZoom - window.mozInnerScreenX;
|
||||
this._y = event.screenY / fullZoom - window.mozInnerScreenY;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user