phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
37.12k stars 7.1k forks source link

The trouble with right mouse button in Maxthon browser #2701

Closed zonex5 closed 7 years ago

zonex5 commented 8 years ago

Right mouse button does not work in the browser Maxthon and Nitro. The following code displays in any case 'left mouse':

game.input.onDown.add(function (p) {
     if (game.input.activePointer.leftButton.isDown) {
          console.log('left button')
      }
     if (game.input.activePointer.rightButton.isDown) {
           console.log('right button')
      }
}, this);

In other browsers everything works correctly.

photonstorm commented 7 years ago

Thank you for taking the time to open this issue. However, official support for Phaser 2 has now ended as we focus on preparing Phaser 3 for beta release. In a bid to keep the project tidy, and avoid confusion, we are closing all v2 related issues.

This does not mean your issue won't be looked-at. In November 2016 the Phaser CE (Community Edition) project began. The aim of Phaser CE was to allow the community to continue v2 development. Since then it has gained significant traction, with many updates and releases.

If you are still interested in having your issue investigated we strongly recommend testing the latest Phaser CE release. And only if the problem persists, opening an issue on the Phaser CE repo.