I have a function that fires as an object is moved:
function objectMoving(c){
if(x==y) doThis();
doThat();
};
Among other stuff, I would like to run doThis if my x==y, but only once per move.
Unfortunately objectMoving continually fires as the object is grabbed, even if the object is not moving. I do not have access to when the object is let go.
Is there a way to run doThis only on the last run of objectMoving?