diff options
author | Franklin DM <mrmineshafter17@gmail.com> | 2018-07-13 14:20:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 14:20:46 +0800 |
commit | 012c67fbe00dcb65caa1d34c41400485123e9759 (patch) | |
tree | 100b5c2a1b686981c6391fe6cd844886e8e66e14 /application | |
parent | 70e0e5ccb7ed0fb3a9a886fa7a0362308ee3e32f (diff) | |
download | UXP-012c67fbe00dcb65caa1d34c41400485123e9759.tar UXP-012c67fbe00dcb65caa1d34c41400485123e9759.tar.gz UXP-012c67fbe00dcb65caa1d34c41400485123e9759.tar.lz UXP-012c67fbe00dcb65caa1d34c41400485123e9759.tar.xz UXP-012c67fbe00dcb65caa1d34c41400485123e9759.zip |
Issue #336: Mouse position tracker not set even if chrome is still visible on fullscreen
Diffstat (limited to 'application')
-rw-r--r-- | application/basilisk/base/content/browser-fullScreenAndPointerLock.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/application/basilisk/base/content/browser-fullScreenAndPointerLock.js b/application/basilisk/base/content/browser-fullScreenAndPointerLock.js index 497e51121..dbc9478c1 100644 --- a/application/basilisk/base/content/browser-fullScreenAndPointerLock.js +++ b/application/basilisk/base/content/browser-fullScreenAndPointerLock.js @@ -320,6 +320,18 @@ var FullScreen = { document.addEventListener("keypress", this._keyToggleCallback, false); document.addEventListener("popupshown", this._setPopupOpen, false); document.addEventListener("popuphidden", this._setPopupOpen, false); + // If it is not safe to collapse, add the mouse position tracker or + // else it won't be possible to hide the navigation toolbox again + if (!this._safeToCollapse()) { + let rect = gBrowser.mPanelContainer.getBoundingClientRect(); + this._mouseTargetRect = { + top: rect.top + 50, + bottom: rect.bottom, + left: rect.left, + right: rect.right + }; + MousePosTracker.addListener(this); + } // In DOM fullscreen mode, we hide toolbars with CSS if (!document.fullscreenElement) this.hideNavToolbox(true); |