Hello, I updated my project from 3.55 to 3.86 but I got this issue.
This method always returns true
this.input.activePointer.leftButtonReleased()
No problem with
this.input.activePointer.leftButtonDown()
And no problem with
this.input.activePointer.rightButtonReleased()
Only the left button.
Thanks.
Tested in the Sandbox
class MainScene extends Phaser.Scene {
constructor() {
super({ key: "MainScene" });
}
preload() {
this.load.image("earth", "https://cdn.phaser.io/sandbox/square-earth.png");
}
create() {
this.earth = this.add.image(400, 350, "earth");
}
update(time) {
this.earth.rotation += 0.005;
this.earth.y = this.earth.y + Math.sin(time / 1000 * 2)
console.log("leftButtonReleased: ", this.input.activePointer.leftButtonReleased());
}
}
const game = new Phaser.Game({
type: Phaser.AUTO,
width: 800,
height: 800,
backgroundColor: '#111111',
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH
},
scene: [ MainScene ]
})
https://phaser.io/sandbox/uYFZMeyb