Merge pull request #1807 from thecodingmachine/fix-safari-bug-joystick

fixed bugged safari's joystick
This commit is contained in:
grégoire parant 2022-02-01 16:42:45 +01:00 committed by GitHub
commit bc03182129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,8 @@ export class WaScaleManager {
this.actualZoom = realSize.width / gameSize.width / devicePixelRatio;
}
this.scaleManager.setZoom(this.actualZoom);
this.scaleManager.resize(gameSize.width, gameSize.height);
this.scaleManager.setZoom(this.actualZoom);
// Override bug in canvas resizing in Phaser. Let's resize the canvas ourselves
const style = this.scaleManager.canvas.style;