From d5229c558a94010e9183a589e17083fcb335deb2 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 19 Apr 2013 09:23:36 +0100 Subject: [PATCH] Fixed the States examples to reflect the new module name. --- Phaser/Stage.ts | 4 +++ Tests/Tests.csproj | 4 +++ Tests/states/javascript/index.html | 2 +- Tests/states/typescript/FakeGame.js | 44 ------------------------ Tests/states/typescript/FakeGame.ts | 8 ++--- Tests/states/typescript/MainMenu.js | 52 ----------------------------- Tests/states/typescript/MainMenu.ts | 6 ++-- Tests/states/typescript/index.html | 2 +- 8 files changed, 17 insertions(+), 105 deletions(-) delete mode 100644 Tests/states/typescript/FakeGame.js delete mode 100644 Tests/states/typescript/MainMenu.js diff --git a/Phaser/Stage.ts b/Phaser/Stage.ts index 485d8ca4..803a8fde 100644 --- a/Phaser/Stage.ts +++ b/Phaser/Stage.ts @@ -31,6 +31,10 @@ module Phaser { document.body.appendChild(this.canvas); } + // Consume default actions on the canvas + this.canvas.style.msTouchAction = 'none'; + this.canvas.style['touch-action'] = 'none'; + this.context = this.canvas.getContext('2d'); this.offset = this.getOffset(this.canvas); diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index 11a16693..9b67de0a 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -96,6 +96,10 @@ + + + screen grab.ts + bounce.ts diff --git a/Tests/states/javascript/index.html b/Tests/states/javascript/index.html index 4265c928..29b2d695 100644 --- a/Tests/states/javascript/index.html +++ b/Tests/states/javascript/index.html @@ -16,7 +16,7 @@