mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 17:47:34 +09:00
Issue #336: Mouse position tracker not set even if chrome is still visible on fullscreen
This commit is contained in:
parent
724afe19a2
commit
52f1c9915a
1 changed files with 12 additions and 0 deletions
|
|
@ -320,6 +320,18 @@ var FullScreen = {
|
||||||
document.addEventListener("keypress", this._keyToggleCallback, false);
|
document.addEventListener("keypress", this._keyToggleCallback, false);
|
||||||
document.addEventListener("popupshown", this._setPopupOpen, false);
|
document.addEventListener("popupshown", this._setPopupOpen, false);
|
||||||
document.addEventListener("popuphidden", 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
|
// In DOM fullscreen mode, we hide toolbars with CSS
|
||||||
if (!document.fullscreenElement)
|
if (!document.fullscreenElement)
|
||||||
this.hideNavToolbox(true);
|
this.hideNavToolbox(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue