-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
How to reproduce :
- open this official tutorial : http://www.createjs.com/tutorials/Mouse%20Interaction/basic.html
- click the red circle
- move slightly your mouse to leave the circle
- hit enter to close the dialog
- not moving the mouse, click again : you see the dialog opening again as if the mouse were on the circle
Why :
It's because of an optimization in stage.js where the mouse position isn't forwarded on click on the basis the computations are done on move.
How to fix :
One way would be to change the _handleMouseDown
function like this :
_handleMouseDown = function(e) {
this._handlePointerDown(-1, e, e.pageX, e.pageY);
};
The cost would be to do at each click the same computation that is done on each move. I don't personally think it's important.
Here's a demonstration of how this fix would behave : http://dystroy.org/stackoverflow/EaselJS_bug_moveUnfocused.html
Reference :
See http://stackoverflow.com/q/19246361/263525
(Canop == dystroy)
Metadata
Metadata
Assignees
Labels
No labels