mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix few touch things
This commit is contained in:
parent
661ea42152
commit
79a388a54a
1 changed files with 9 additions and 1 deletions
10
src/Main.hx
10
src/Main.hx
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue