Browse Source

disable user scaling

Maxim Sokhatsky 11 years ago
parent
commit
d5073333a9

+ 1 - 1
apps/web/priv/static/app/js/bootloader.js

@@ -115,7 +115,7 @@ function PatchSVG()
     Core(HandScope);
     Core(DeckScope);
 
-    $svg.attr({preserveAspectRatio:"xMidYMin meet",class:"svg"});
+    $svg.attr({preserveAspectRatio:"xMidYMin meet",class:"svg",width:"100%",height:"100%"});
 }
 
 function onPlayerInfo(evt) {

+ 0 - 3
apps/web/priv/static/app/js/dragndrop.js

@@ -4,9 +4,6 @@ function DragScope(scope) {
     {
         sizeX = $svg[0].viewBox.baseVal.width / innerWidth;
         sizeY = $svg[0].viewBox.baseVal.height / innerHeight;
-        $page = $("#Page-1");
-        sizeX = $page[0].width / innerWidth;
-        sizeY = $page[0].height / innerHeight;
         size = Math.max(sizeX, sizeY) || 1;
     }