зеркало из https://github.com/mozilla/gecko-dev.git
Bug 707736 - Hide the cursor when it's motionless over a fullscreen video. r=dolske
This commit is contained in:
Родитель
8ea3a1426a
Коммит
25f68c2f08
|
@ -26,6 +26,10 @@
|
|||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.controlsSpacer[hideCursor] {
|
||||
cursor: none;
|
||||
}
|
||||
|
||||
/* CSS Transitions
|
||||
*
|
||||
* These are overriden by the default theme; the rules here just
|
||||
|
|
|
@ -619,6 +619,7 @@
|
|||
// If video hasn't shown anything yet, disable the controls.
|
||||
if (!this.firstFrameShown)
|
||||
this.startFadeOut(this.controlBar);
|
||||
this.controlsSpacer.removeAttribute("hideCursor");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
@ -900,8 +901,14 @@
|
|||
// when we remove the attribute.
|
||||
element.clientTop;
|
||||
element.removeAttribute("fadeout");
|
||||
if (element.className == "controlBar")
|
||||
this.controlsSpacer.removeAttribute("hideCursor");
|
||||
} else {
|
||||
element.setAttribute("fadeout", true);
|
||||
if (element.className == "controlBar" && !this.hasError() &&
|
||||
document.mozFullScreenElement == this.video)
|
||||
this.controlsSpacer.setAttribute("hideCursor", true);
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче