fix few touch things

This commit is contained in:
RandomityGuy 2024-06-11 23:43:49 +05:30
parent 661ea42152
commit 79a388a54a

View file

@ -60,8 +60,16 @@ class Main extends hxd.App {
canvasElement.style.height = "100%";
#end
#if android
var zoomRatio = Window.getInstance().height / 600;
var zoomRatio = Math.min(Window.getInstance().height, Window.getInstance().width) / 600;
s2d.scaleMode = Zoom(zoomRatio);
trace("Initial Window resized to "
+ Window.getInstance().width
+ "x"
+ Window.getInstance().height
+ " (Zoom "
+ zoomRatio
+ ")");
#end
#if android