CUCHO Posted February 6, 2015 Share Posted February 6, 2015 Hello everyone, I am new to using pixi.js and I have the following problem: How I can unbind the mousemove event in pixi js? For example with JQuery would be something like this;$('#lalala').on('mousedown', function (event) { // do something $(this).on('mousemove', function (event) { //do something }); }).on('mouseup', function (event) { $(this).unbind('mousemove');});As you can see, I want to stop the mousemove event when I call the mouseup event And as far as I know, with pixi js would be something like this;STAGE.mousedown = function (event) { //do something this.mousemove = function (event) { //do something };};STAGE.mouseup = function (event) { //I do not know what should go here to stop the mousemove event};I need to stop the mousemove event when I call the mouseup event, but I want to be able to call again the mousemove event when the mousedown event is called and so on. Please help me. I'm stuck. Thank you. Quote Link to comment Share on other sites More sharing options...
msha Posted February 6, 2015 Share Posted February 6, 2015 this.mousemove = null; Quote Link to comment Share on other sites More sharing options...
CUCHO Posted February 6, 2015 Author Share Posted February 6, 2015 this.mousemove = null; Thank you, It's work. 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.