From 1709068ce1efd6aa26790d259c0ab9fbb851a7b8 Mon Sep 17 00:00:00 2001 From: trichimtrich Date: Fri, 17 May 2019 22:31:10 +0800 Subject: [PATCH] remove minimum bound of screen --- static/js/gesture_touch.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/static/js/gesture_touch.js b/static/js/gesture_touch.js index 37bef6c4..d77ea015 100644 --- a/static/js/gesture_touch.js +++ b/static/js/gesture_touch.js @@ -8,14 +8,9 @@ function fixScreen() { width = child.width(); height = child.height(); - // Should have maximum box for desktop - if (["win", "mac", "linux"].indexOf(getOS()) != -1) { - targetWidth = Math.min(800, target.width()); - targetHeight = Math.min(600, target.height()); - } else { - targetWidth = target.width(); - targetHeight = target.height(); - } + // Should have maximum box for desktop? + targetWidth = target.width(); + targetHeight = target.height(); screenWidth = targetWidth; screenHeight = targetHeight; @@ -45,8 +40,6 @@ $(window).on("resize", fixScreen); $(window).on("orientationchange", fixScreen); - - // Virtual Joystick // Ref: https://jsfiddle.net/aa0et7tr/5/