Skip to content

Commit

Permalink
Fix to mobile detections
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Feb 6, 2012
1 parent 995fba0 commit 498c153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ var Game = new function() {
var container = document.getElementById("container"),
hasTouch = !!('ontouchstart' in window),
w = window.innerWidth, h = window.innerHeight;

if(hasTouch) { mobile = true; }
if(hasTouch) { this.mobile = true; }

if(screen.width >= 1280 || !hasTouch) { return false; }

Expand Down

0 comments on commit 498c153

Please sign in to comment.