Jump to content

MouseDown/MouseUp Not Firing on Babylon Canvas Element


mr_pinc
 Share

Recommended Posts

It appears with the latest build the babylon canvas element no longer fires mousedown, or mouseup events.  Element still responds to touch events and click events but adding your own mouse down or mouse up handlers do not fire.  Mouse move works as well.  

Link to comment
Share on other sites

Hi again @mr_pinc

I stand corrected :) 

Javascript events,
e.g. eventListeners like you are using in your example,
has nothing to do with babylon :)

if you updated your browser recently, the old mouse prefix was probably deprecated and removed.

I would suggest using both prefixes depending on the users browser support; https://playground.babylonjs.com/#Y0QJPK#3
Have a nice day.

Link to comment
Share on other sites

It does have something to do with babylon.  If I use a babylon nightly from 2 weeks ago (roughly, I can try to get more detailed date) the mouseDown event works.  If I switch to the current nightly it does not work.  This is using the same browser (electron 1.8.1)

Link to comment
Share on other sites

This issue is bringing to light another problem - unless it's somewhere I don't know about - there's not engine build number so it makes it hard to distinguish builds.  It might be useful to add a build number that can be more easily tied to a nightly. 

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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