jellix Posted October 6, 2016 Share Posted October 6, 2016 Hi, Here's the case: http://www.babylonjs-playground.com/#GV32Z Press the mousebutton and move the cursor onto the code-window on the left > release the mouseButton there and now move the cursor onto the canvas again (without pressing the mouse button). The camera is moving although the mouseButton is not pressed. You see that Babylon didn't recognize the mouseUp-Event outside of the canvas. Is there a way to extend the mouseListener of the camera controls so that it listens to the mouseUp-event on the whole document? Quote Link to comment Share on other sites More sharing options...
adam Posted October 6, 2016 Share Posted October 6, 2016 I can't reproduce the issue in Chrome. Quote Link to comment Share on other sites More sharing options...
adam Posted October 6, 2016 Share Posted October 6, 2016 I do see the issue in Firefox though. Quote Link to comment Share on other sites More sharing options...
jellix Posted October 6, 2016 Author Share Posted October 6, 2016 you're right, the issue doesn't appaer in chrome but in firefox. Quote Link to comment Share on other sites More sharing options...
adam Posted October 6, 2016 Share Posted October 6, 2016 1 hour ago, jellix said: Is there a way to extend the mouseListener of the camera controls so that it listens to the mouseUp-event on the whole document? The only way I know how to do it is like this: http://www.babylonjs-playground.com/#GV32Z#2 Quote Link to comment Share on other sites More sharing options...
jellix Posted October 6, 2016 Author Share Posted October 6, 2016 Thanks! It is a way ... a long way ... but a way :-) Quote Link to comment Share on other sites More sharing options...
adam Posted October 6, 2016 Share Posted October 6, 2016 I wonder what the downside is of attaching the pointermove and pointerup to the window/document. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.