]> _ Git - fluidbook-html5.git/commitdiff
wip #1701 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 31 Oct 2017 16:09:58 +0000 (17:09 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 31 Oct 2017 16:09:58 +0000 (17:09 +0100)
js/libs/fluidbook/fluidbook.js

index 8070465beadff962bca30fa4538643121711b66e..10349946e2669290d8a71de104a07a0ecf4c0cb9 100644 (file)
@@ -883,8 +883,8 @@ Fluidbook.prototype = {
                     offset.left += ($(e).width() / 2);
                     offset.top += ($(e).height() / 2);
 
-                    offset.left *= window.devicePixelRatio;
-                    offset.top *= window.devicePixelRatio;
+                    offset.left *= 2;
+                    offset.top *= 2;
 
                     if ($(e).data('ios-preview') == '1') {
                         offset.top = offset.left = 0;