mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-24 02:55:45 +00:00
Merge branch 'master' of github.com:giongto35/cloud-game
This commit is contained in:
commit
ac87281ab7
1 changed files with 3 additions and 10 deletions
13
static/js/gesture_touch.js
vendored
13
static/js/gesture_touch.js
vendored
|
|
@ -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/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue