]> _ Git - fluidbook-html5.git/commitdiff
wip #4866 @0:15
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 12 Nov 2021 14:02:10 +0000 (15:02 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 12 Nov 2021 14:02:10 +0000 (15:02 +0100)
js/libs/fluidbook/fluidbook.js

index 89e5b31bdb848af08a1fcd64a210b53b7a1dc387..098c53e0be4f95018c510e92d2b728bbc89aa28d 100644 (file)
@@ -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}});
     },