]> _ Git - fluidbook-html5.git/commitdiff
wait #4210
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 16 Jun 2022 14:52:01 +0000 (16:52 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 16 Jun 2022 14:52:01 +0000 (16:52 +0200)
js/libs/fluidbook/fluidbook.slider.js

index c223c24635d5ee0abeac3ec8750780f333cf0f42..794e6d5fbe20d80374e864cb85c6e15b54ad474b 100644 (file)
@@ -78,12 +78,16 @@ FluidbookSlider.prototype = {
 
         $("#slider").on('mouseleave', function () {
             if ($this.fluidbook.input.isUsingMouse()) {
-                $("#slider").removeClass('hover');
+                $this.leave();
             }
         });
 
     },
 
+    leave: function () {
+        $("#slider").removeClass('hover');
+    },
+
     hover: function (pageX) {
         if (!$("#slider").length === 0) {
             return;