Pixi.js: 'mouseover' and 'mouseout' events not firing without mouse movement

Created on 12 Feb 2018  路  6Comments  路  Source: pixijs/pixi.js

Hello,

Right now display objects only fire 'mouseover' and 'mouseout' events if the cursor is moved. However, if the cursor is not moving, and an object's transform is updated to appear behind the cursor, or disappear from behind the cursor (specifically rotation, scale, position, visible), the 'mouseover' and 'mouseout' events are not fired, which would be a very important feature to have.

Would this be possible to implement? It would be very important for our project. I can elaborate on usage if requested. Thanks!

Stale 馃捑 v4.x (Legacy) 馃攳 Needs Investigation

Most helpful comment

All 6 comments

Hmmm, http://pixijs.download/dev/docs/interaction_InteractionManager.js.html#line844 seems to indicate that there was an attempt to have this working.

Could you provide a fiddle with this please?

Looked at this issue...
In InteractionManager.processInteractive invisible object is completely ignored:
if (!displayObject || !displayObject.visible) { return false; }
so processPointerOverOut doesn't handle it...
Previous state should be somehow stored? Didn't find any easy solution for this (

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Just curious, was there ever a resolution to this? I still notice this behavior v5.2.0. Thanks!

There wasn't any resolution to my knowledge. I got around it by merely manipulating the ticker to start/stop any time I knew an object might appear/disappear. Would have to be customized for your project's needs. Check out the ticker checkbox in the jsfiddle.

Was this page helpful?
0 / 5 - 0 ratings