From: Vincent Vanwaelscappel Date: Thu, 7 Jan 2021 13:28:16 +0000 (+0100) Subject: wip #4168 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=efaf1f57a2e745a75b47495ca5c836ec441027ac;p=fluidbook-html5.git wip #4168 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 6f15bc72..52248821 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -136,7 +136,16 @@ FluidbookLinks.prototype = { return false; }); - $(document).on('click touchend', '[data-showid]', function () { + $(document).on('mouseover', '[data-showid][data-showmode="showonhover"]', function () { + $this.showLinkById($(this).data('showid')); + return true; + }).on('mouseout', '[data-showid][data-showmode="showonhover"]', function () { + $this.hideLinkById($(this).data('showid')); + }).on('click touchend', '[data-showid][data-showmode="showonhover"]', function () { + return false; + }); + + $(document).on('click touchend', '[data-showid]:not([data-showmode="showonhover"])', function () { var mode = $(this).data('showmode'); if (mode === 'toggle') {