]> _ Git - fluidbook-html5.git/commitdiff
This reverts commit 47b1fe98
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 25 Mar 2019 13:02:55 +0000 (14:02 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 25 Mar 2019 13:02:55 +0000 (14:02 +0100)
js/libs/fluidbook/fluidbook.tooltip.js
style/fluidbook.less

index 21d19468c7d38944ea7fde0b2e91d1fc88d25626..81d2f29b53089af743893f13d179ee1d3efc31c7 100644 (file)
@@ -17,7 +17,8 @@ FluidbookTooltip.prototype = {
         $(window).on('fluidbookzoom', function (e, zoom) {
             $("#tooltip").transform({scale: 1 / zoom}).css({'marginTop': 20 / zoom, 'marginLeft': -10 / zoom});
         });
-        
+
+
         $(document).on('mouseover', 'a[data-tooltip]', function (e) {
             $this.updateMousePosition(e);
             $this.eventTriggered(this);
@@ -73,9 +74,9 @@ FluidbookTooltip.prototype = {
     },
 
     eventTriggered: function (target) {
-        // if (Modernizr.ftouch && !$(target).is("[data-tooltip-touch]")) {
-        //     return true;
-        // }
+        if (fluidbook.input.isUsingTouch() && !$(target).is("[data-tooltip-touch]")) {
+            return true;
+        }
 
         // When the help is open, we don't want tooltips because they are already displayed under the icons
         if (this.fluidbook.help.isVisible()) {
@@ -98,11 +99,11 @@ FluidbookTooltip.prototype = {
             $(document).one("touchstart", function () {
                 $this.hideTooltip();
             });
+        } else {
+            $(target).one('mouseout', function () {
+                $this.hideTooltip();
+            });
         }
-        $(target).one('mouseout', function () {
-            $this.hideTooltip();
-        });
-
 
         this.displayTooltip(text);
         return false;
index 179496ea2789a706a861661821ca40ff4b9f503a..23e9b6a0f2d9eab16ada8d4061a2cefed6aaf060 100644 (file)
@@ -1213,11 +1213,14 @@ html.ios body.portrait #interface {
   background-color: transparent;
 
   &.displayArea {
+    -webkit-tap-highlight-color: @links-area-color;
     background-color: fadeout(@links-color, 99.999%);
+
     &.animating {
       background-color: @links-area-color;
     }
-    &:hover {
+
+    .using-mouse &:hover {
       opacity: 1 !important;
       background-color: @links-area-color;
     }