psyny / FoundryVTT

My Modules for Foundry VTT
6 stars 6 forks source link

Cozy Player - Token Tooltip Stuck #9

Open VoltCruelerz opened 4 years ago

VoltCruelerz commented 4 years ago

The token tooltip can get stuck in position, forcing you to have to move the camera (or mouse over another token) to get access to your original token again.

  1. Hover token, so tooltip appears.
  2. Click and *hold token for a moment, then drag token on top of the tooltip.
  3. Release left mouse.
  4. Move mouse away from token.

It seems as though there must be an onMouseLeave event for the tokens that the tooltip is eating.

image

There is another way to reproduce this by moving the mouse very quickly while moving the token long distances so that the token is in transit when you move your mouse away from the target destination so similarly there is no onMouseLeave event.

Proposed Solution: if a token moves, kill its tooltip