From: Vincent Vanwaelscappel Date: Thu, 10 Jan 2019 16:25:34 +0000 (+0100) Subject: Merge remote-tracking branch 'origin/master' into 3dflip X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=29c53a229be1aebfef18f73d05f65378f00cb1e5;p=fluidbook-html5.git Merge remote-tracking branch 'origin/master' into 3dflip --- 29c53a229be1aebfef18f73d05f65378f00cb1e5 diff --cc js/libs/fluidbook/fluidbook.nav.js index 10041742,e6c16a57..2092bae6 --- a/js/libs/fluidbook/fluidbook.nav.js +++ b/js/libs/fluidbook/fluidbook.nav.js @@@ -662,9 -655,38 +662,9 @@@ FluidbookNav.prototype = $this.openSearch(); }); - - if (this.fluidbook.support.fullscreen) { - // Full screen toggle - $(document).on('click', '.icon-fullscreen', function () { - $this.menuAPI.close(); - screenfull.toggle(); - return false; - }); - - - // Toggle icon on fullscreen change (also handles exiting via ESC key) - screenfull.on('change', function () { - resize(); - // Slight delay to stop icon state flickering during fullscreen transition - setTimeout(function () { - if (screenfull.isFullscreen) { - $('.icon-fullscreen').addClass('active'); - } else { - $('.icon-fullscreen').removeClass('active'); - } - resize(); - }, 250); - - setTimeout(function () { - resize(); - }, 1000); - }); - } - // Share icon $(document).on('click', '.icon-share', function () { - if ($this.fluidbook.datas.phonegap != 'android') { + if ($this.fluidbook.datas.phonegap !== 'android') { return true; } $this.fluidbook.share.intentShare();