I've encoutered an issue with buttons and the dragging behaviour:
Do the following:
- Create a button, and create a Sprite with the dragging behaviur, put the button ON TOP of the Sprite.
- Try dragging THE BUTTON (nothing happens).
- Now drag the draggable Sprite.
What happens is the bug...
Now, I know some of you will promptly recommend to avoid the premade buttons al along, but it's too late, as our project has hundred of them!
I know there are some js commands to disable certain built-in features, like "document.addEventListener('contextmenu', function(e){e.preventDefault();}, false);" used to disable the NW.js context menu, etc.
So I'm asking if there is a similiar way to disable the "button" dragging thing... would be really appreciated!
Thank you
UPDATE1: I've found a dirty workaround, when mouse id over a button, the sprite disables the drag behaviur, and vice-versa. I don't like it but at least it works.
UPDATE2: I've concluded the bug has nothing to do with dragging, but it's a button/bar objects problem that arises if you mess with them for some time. I think a fix can only come from js.