]> _ Git - fluidbook-html5.git/commitdiff
wait #6200 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 8 Feb 2024 19:53:26 +0000 (20:53 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 8 Feb 2024 19:53:26 +0000 (20:53 +0100)
js/libs/fluidbook/fluidbook.loader.js

index ce8a7ffcb7501dbcd7d4419442c3218056ae8662..47bc12b25b08d0fcaf185eb3552e650061ca9687 100644 (file)
@@ -748,7 +748,7 @@ FluidbookLoader.prototype = {
                         let h = parseFloat($(this).css('height'));
 
                         if (scale !== 1) {
-                            let origin = '50% 50%';
+                            let origin = $(this).data('animation-zoomed-origin');
                             origin = parseTransformOrigin(origin);
 
                             sx = (1 - (1 / scale)) * tw * origin[0];