satguru Posted January 18, 2016 Share Posted January 18, 2016 I was checking the Drag and Drop example in the Playground. It uses the "pointermove" event to capture pointer moves. canvas.addEventListener("pointermove", onPointerMove, false); I eventually also found out that for this to work one you has to include "hand.minified-1.2.js " script too Now BABYLON.Scene provides onPointerDown and onPointerUp properties. Why not a Scene.onPointerMove property? Are there any concerns with using the "pointermove" provided by hand.minified-1.2.js? Quote Link to comment Share on other sites More sharing options...
RaananW Posted January 18, 2016 Share Posted January 18, 2016 onPointerMove was added in version 2.3. The only concern with using pointermove is that you will have to unregister the function when you reload the scene (or the playground), otherwise you will have a function leak. Quote Link to comment Share on other sites More sharing options...
satguru Posted January 19, 2016 Author Share Posted January 19, 2016 Nice, Thanks 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.