From: Vincent Vanwaelscappel Date: Fri, 12 Nov 2021 14:02:10 +0000 (+0100) Subject: wip #4866 @0:15 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2d1d5c4b417af20ee8705c620f483b62d574de00;p=fluidbook-html5.git wip #4866 @0:15 --- diff --git a/js/libs/fluidbook/fluidbook.js b/js/libs/fluidbook/fluidbook.js index 89e5b31b..098c53e0 100644 --- a/js/libs/fluidbook/fluidbook.js +++ b/js/libs/fluidbook/fluidbook.js @@ -507,6 +507,7 @@ Fluidbook.prototype = { if (!this.mobilefirst.enabled) { return; } + anchor=anchor.toLowerCase().replace('/-/g',''); var id = $('[data-anchor="' + anchor + '"]').attr('id'); TweenMax.to($("#scroll"), 0.5, {scrollTo: {y: '#' + id, offsetY: $('header').outerHeight() + 10}}); },