scene.onPointerObservable doesn't catch mouse4 and mouse5 events in BabylonJS 5+

This worked in BabylonJS 4.2.x but doesn’t work in the current branch (5.15.1 is the latest at this moment).

You can try to switch versions in the following playground:

I am able to get the mouse 4 and 5 buttons to work but there’s something odd about their activation so let me take a look and see what’s going on.

1 Like

So here’s an update. There was an issue with how the 4 and 5 buttons was being caught. What I thought was working was actually a bit of a coincidence and was actually related to the buttons property, I believe. In any case, I’ve created a PR to fix the issue: InputManager: Added mouse buttons 4 and 5 to InputManager mouse handling by PolygonalSun · Pull Request #12765 · BabylonJS/Babylon.js (github.com)

1 Like

PR is merged

1 Like