From 3311e70296513e97e6cef685479fc8255ddb2869 Mon Sep 17 00:00:00 2001 From: Xaver Maierhofer Date: Wed, 1 Aug 2018 21:16:41 +0200 Subject: [PATCH] [BUGFIX] Fullscreen icon switch --- lib/utils/helper.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/helper.js b/lib/utils/helper.js index 29070b7..429f4eb 100644 --- a/lib/utils/helper.js +++ b/lib/utils/helper.js @@ -184,6 +184,7 @@ define({ || fel.webkitRequestFullScreen || fel.mozRequestFullScreen; func.call(fel); + btn.classList.remove('ion-full-enter'); btn.classList.add('ion-full-exit'); } else { func = document.exitFullscreen @@ -191,6 +192,7 @@ define({ || document.mozCancelFullScreen; if (func) { func.call(document); + btn.classList.remove('ion-full-exit'); btn.classList.add('ion-full-enter'); } }