Bugfixes / Possibly fixed unit tests

This commit is contained in:
Anuken
2019-02-08 17:05:09 -05:00
parent bb0ee26e4f
commit a87e2a56d2
10 changed files with 30 additions and 72 deletions

View File

@@ -642,6 +642,8 @@ public class MobileInput extends InputHandler implements GestureListener{
@Override
public boolean pan(float x, float y, float deltaX, float deltaY){
if(Core.scene.hasDialog()) return false;
float scale = Core.camera.width / Core.graphics.getWidth();
deltaX *= scale;
deltaY *= scale;