Search code examples
javascriptcreatejseaseljs

easeljs mouse events on disabled stage curosr


In my simple application i need to hide original cursor stage.cursor = 'none'; stage.enableMouseOver(), than i replace it with my own image

Than i register listener on stagemousemove event:

myBitmap.x = stage.mouseX;
myBitmap.y = stage.mouseY;

After this action i loose access to listen mouse events on other stage objects:

//nothing happen on mouse over
someBitmap.on('mouseover', function() { console.log(1) });

Is there any possible solutions, expect check every time hitTests on my objects inside stage mouse events?


Solution

  • Fixed by setting up cursor: none in my css rules and removing stage.cursor = 'none'from js. Thanks @Andew for example.