From: Vincent Vanwaelscappel Date: Thu, 24 Oct 2024 13:23:33 +0000 (+0200) Subject: wait #7151 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d0335572ef1b2c19810391611f564b2259fcc60e;p=fluidbook-html5.git wait #7151 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.interface.js b/js/libs/fluidbook/fluidbook.interface.js index e7afff07..832055b7 100644 --- a/js/libs/fluidbook/fluidbook.interface.js +++ b/js/libs/fluidbook/fluidbook.interface.js @@ -82,9 +82,9 @@ FluidbookInterface.prototype = { }); $(this.fluidbook).on('fluidbook.lib.ready', function () { - setTimeout(function(){ + setTimeout(function () { $this.initArrowsVisibilityManagement(); - },1000) + }, 1000) }); @@ -146,12 +146,12 @@ FluidbookInterface.prototype = { }, initArrowsVisibilityManagement: function () { - var $this = this; + let $this = this; this.getInterfaceSelector().addClass('interfacecomponent'); if (this.autoHideArrows()) { - if (this.fluidbook.touch) { + if (this.fluidbook.touch && this.fluidbook.touch.hm) { this.fluidbook.touch.hm.on('singletap', function (event) { var target = $(event.target); if (target.is('a') || target.closest('a').length > 0) { @@ -198,13 +198,11 @@ FluidbookInterface.prototype = { } else { return this.displayInterface(); } - }, - displayInterface: function () { + }, displayInterface: function () { this.interfaceVisible = true; this.getInterfaceSelector().removeClass('interfacehidden'); this.resetTimeout(); - }, - resetTimeout: function () { + }, resetTimeout: function () { this.clearTimeout(); if (!this.autoHideArrows()) { return false; @@ -214,8 +212,7 @@ FluidbookInterface.prototype = { this.visibleTimeout = setTimeout(function () { $this.hideInterface(); }, this.visibleTime); - }, - hideInterface: function () { + }, hideInterface: function () { if (!this.autoHideArrows()) { return; } diff --git a/style/videojs/videojs.less b/style/videojs/videojs.less index 9eaca9a2..4b6dba56 100644 --- a/style/videojs/videojs.less +++ b/style/videojs/videojs.less @@ -20,6 +20,8 @@ height: 100%; font-size: 12px !important; overflow: hidden; // Fixes #1448 + display: flex; + align-items: center; } }