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 @@