Jump to content

Babylon.gui trigger onPointer when pointer is down


E.A.
 Share

Recommended Posts

Hej hej,

 

Is there a way to trigger the "onPointer" events in babylon.gui when the pointer is down. E.g. if I hold the pointer down and move over a "BABYLON.GUI.Ellipse" can I trigger "onPointerMoveObservable" ? It worked in older versions of babylon.gui. (no idea what I used before, end 2017, just downloaded the latest files)

I want to create a menu that unfolds as you move the pointer in the "down" state.

Is there a way to make "button2" turn blue:

http://www.babylonjs-playground.com/#PJH36M#2

 

Cheers,

Erik

 

Link to comment
Share on other sites

If you hold the pointer down over the scene (and not a GUI element) then the pointer move is for the scene (to move camera for instance).

If you first click over the GUI element and then starts moving the move will go to GUI.

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