禁用舞台光标上的画架鼠标事件

easeljs mouse events on disabled stage curosr

在我的简单应用程序中,我需要隐藏原始光标 stage.cursor = 'none'; stage.enableMouseOver(),而不是用我自己的图像替换它

比起我在 stagemousemove 事件上注册侦听器:

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

此操作后,我失去了在其他舞台对象上监听鼠标事件的权限:

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

是否有任何可能的解决方案,希望每次在舞台鼠标事件中对我的对象进行 hitTest 时检查?

已通过在我的 css 规则中设置 cursor: none 并从 js 中删除 stage.cursor = 'none' 来修复。例如,谢谢 @Andew