Mouse on events with curosr scene disabled

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

How do I listen to the registrar for an stagemousemoveevent:

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

After this action, I will lose access to listening to mouse events on other objects of the stage:

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

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

+4
source share
1 answer

Fixed by setting cursor: nonein my CSS rules and removing stage.cursor = 'none'from js. For example, @Andew .

+1
source

Source: https://habr.com/ru/post/1651049/


All Articles