]> _ Git - fluidbook-html5.git/commitdiff
wait #7151 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 24 Oct 2024 13:23:33 +0000 (15:23 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 24 Oct 2024 13:23:33 +0000 (15:23 +0200)
js/libs/fluidbook/fluidbook.interface.js
style/videojs/videojs.less

index e7afff074eb77546532e4fdf3984bc8d8878eab2..832055b7a230b741a8cacd02fcab1c120ad15fc5 100644 (file)
@@ -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;
         }
index 9eaca9a24b4af839193b270acbab800849582af0..4b6dba5683bbf6e07d687f5928d37230bc624608 100644 (file)
@@ -20,6 +20,8 @@
     height: 100%;
     font-size: 12px !important;
     overflow: hidden; // Fixes #1448
+    display: flex;
+    align-items: center;
   }
 }