Jump to content

scene.onPrePointerObservable and lack of pointer up notification after dragging


matdav
 Share

Recommended Posts

Hi guys,
I have this problem with the latest version of the library.
I added an observable to scene.onPrePointerObservable to get notifications on pointer down and up on the scene and accordingly set a variable _isPointerDown to true or false, in the same way is done in FramingBehavior to detect the user is moving the scene.

When I make a single click on the scene I correctly receive the two notifications for the pointer down and pointer up events.

The problem occurs when I do dragging (moving the camera). I receive the notifications for pointer down and pointer move, even in the moment of button release  (pointer up is missing).
So the variable _isPointerDown remains true even when the pointer is not down anymore.

The problem started with the latest version (3.3.0-alpha.0)
Take a look at the following playground and at the console.

https://playground.babylonjs.com/#VH9W33

Thanks,
Matteo
 

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