Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
remove the mobile optimisation tricks, as this is now directly inside…
Browse files Browse the repository at this point in the history
… melonJS
  • Loading branch information
obiot committed Mar 8, 2016
1 parent 61ce46a commit fd4d1cc
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,11 @@
<script type="text/javascript" src="js/screens/title.js"></script>
<script type="text/javascript" src="js/screens/play.js"></script>
<!-- /build -->
<!-- Bootstrap & Mobile optimization tricks -->

<!-- Bootstrap -->
<script type="text/javascript">
window.onReady(function onReady() {
game.onload();

// Mobile browser hacks
if (me.device.isMobile && !navigator.isCocoonJS) {
// Prevent the webview from moving on a swipe
window.document.addEventListener("touchmove", function (e) {
e.preventDefault();
window.scroll(0, 0);
return false;
}, false);
}
});
</script>
</body>
Expand Down

0 comments on commit fd4d1cc

Please sign in to comment.