Eriku33 / Foundry-VTT-Image-Hover

Character art module for Foundry Virtual Table top
MIT License
7 stars 12 forks source link

Avoid Showing ImageHoverHUD when Dragging #39

Closed Kuresov closed 11 months ago

Kuresov commented 2 years ago

What behavior does this introduce?

This should generally prevent ImageHoverHUD from appearing when a user mouses over a token and begins dragging it. If the user moves their mouse slowly enough, the callback from setTimeout will fire, and the HUD will be shown while they are intending on moving the token.

Why is it necessary?

It can be a bit of a confusing experience when the user starts dragging their token, and pauses to think about where to take it, and ImageHoverHUD is shown on the screen. This is more of an issue when the centered position is used, obviously. For some users, this can seem like a "buggy" experience.

Notes & Considerations