$(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);
},
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()) {
$(document).one("touchstart", function () {
$this.hideTooltip();
});
+ } else {
+ $(target).one('mouseout', function () {
+ $this.hideTooltip();
+ });
}
- $(target).one('mouseout', function () {
- $this.hideTooltip();
- });
-
this.displayTooltip(text);
return false;
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;
}