Jump to content

Pointer event button broken


Recommended Posts


I just need to know if the following behavior is normal:


This playground will log the event mouse button pushed when clicking dragging the mouse on the scene.

It logs '-1' is that an expected behavior?

I use the scene pointer observable to get the mouse events:

scene.onPointerObservable.add(pi=> {
		pi.type===4 && pi.event.buttons && console.log('dragging event, button:', pi.event.button);

Edit: I noticed that on release 2.4.1 on the babylon npm package

Thanks for your nice work on Babylon js!


Link to comment
Share on other sites


I found my problem. This is not a bug obviously.

If someone encounter this issue, here was the cause:

if you go to -> chrome://flags/, you can activate special chrome features such as GPU rendering etc.

The following feature, once activated, broke the event system: chrome://flags/#enable-experimental-web-platform-features


Maybe this post shouldn't be in Bugs anymore!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...