David Higuita Posted July 30, 2017 Share Posted July 30, 2017 Hi, Is possible make drag and drop using panda.js? So I have did it on pixi.js, but testing panda.js I love it, so get many good things, but now the only thing that I haven't did it is make drag and drop, I have tested events like mousedown, mouseover, but mousemove doesn't exist, but I don't know if I can add event listener to a sprite o or how can I solve this situation. Thanks. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted July 30, 2017 Share Posted July 30, 2017 Hi @David Higuita I've made a sample project for you There is a mousemove method, but this is better, as the dragged item will not let go when the mouse comes outside of it. If you don't understand something in the sample, just let me know. Hope this helps! drag&drop.zip Quote Link to comment Share on other sites More sharing options...
David Higuita Posted July 30, 2017 Author Share Posted July 30, 2017 @Ninjadoodle Thanks a lot, I made s little test with mousemove and touchmove, but need improve it, I'll watch it. 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.