4

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?

Nitromoon
  • 378
  • 1
  • 2
  • 11
  • 1
    Are you getting any errors in the console? Bitmaps loaded cross domain will have issues with mouse events. Here's a [working demo](https://jsfiddle.net/fb9o8qgb/) of what you are describing. – Andrew Aug 12 '16 at 14:59
  • no errors here, all images loaded from my local storage, webserver runs localy – Nitromoon Aug 12 '16 at 15:03
  • Can you make a fiddle reproducing your issue? Or supply more code? – Andrew Aug 12 '16 at 15:10

1 Answers1

1

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

Community
  • 1
  • 1
Nitromoon
  • 378
  • 1
  • 2
  • 11