Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltip appears when Foundry first loads #6

Closed
illandril opened this issue Aug 28, 2020 · 2 comments
Closed

Tooltip appears when Foundry first loads #6

illandril opened this issue Aug 28, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@illandril
Copy link
Owner

When the mouse first moves after a scene is loaded, one character will often act as if the mouse was hovering over them, and therefore show the tooltip (which will not hide until you mouse over another character).

This is really a bug in Foundry itself, not this module... but it would be good if this module could implement a workaround for that issue to avoid needing to wait for a Foundry fix.

@illandril illandril added the bug Something isn't working label Aug 28, 2020
@illandril illandril added this to To Do in FoundryVTT Modules via automation Aug 28, 2020
@illandril illandril self-assigned this Aug 28, 2020
@illandril
Copy link
Owner Author

This happens when the mouse first moves any time the scene changes, in addition to when foundry first loads. This may be a PIXI bug. I should test this on FoundryVTT 0.7.x, and open an issue for Foundry if this is still an issue there.

Fixing this at the module level will likely require adding a new window-level mouse move event listener, and using that to determine if the mouse is currently actually over the token or not (which may be difficult to make reliable, and would break things like showing the tooltip when a chat name hover simulates a token hover).

FoundryVTT Modules automation moved this from To Do to Done Aug 29, 2020
@illandril
Copy link
Owner Author

Relevant FoundryVTT issue: https://gitlab.com/foundrynet/foundryvtt/-/issues/3506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

1 participant