[BUGFIX] Fullscreen icon switch
This commit is contained in:
parent
e1d3a3d7b2
commit
3311e70296
@ -184,6 +184,7 @@ define({
|
|||||||
|| fel.webkitRequestFullScreen
|
|| fel.webkitRequestFullScreen
|
||||||
|| fel.mozRequestFullScreen;
|
|| fel.mozRequestFullScreen;
|
||||||
func.call(fel);
|
func.call(fel);
|
||||||
|
btn.classList.remove('ion-full-enter');
|
||||||
btn.classList.add('ion-full-exit');
|
btn.classList.add('ion-full-exit');
|
||||||
} else {
|
} else {
|
||||||
func = document.exitFullscreen
|
func = document.exitFullscreen
|
||||||
@ -191,6 +192,7 @@ define({
|
|||||||
|| document.mozCancelFullScreen;
|
|| document.mozCancelFullScreen;
|
||||||
if (func) {
|
if (func) {
|
||||||
func.call(document);
|
func.call(document);
|
||||||
|
btn.classList.remove('ion-full-exit');
|
||||||
btn.classList.add('ion-full-enter');
|
btn.classList.add('ion-full-enter');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user