Eriku33 / Foundry-VTT-Image-Hover

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

Big Image #70

Open Kharmans opened 1 week ago

Kharmans commented 1 week ago

Everytime a user enters Foundry for the first time, the first token he saw a image hover, the image opens on it full size. The image became normal when it hover on another token.

image

DaGwann commented 1 week ago

I've been having the same issue. Tried the module by itself and couldn't replicate the problem, so it must be a conflict with something else. Are you using TheRipper's Tidbits module by any chance? I've found that this bug happens to me when I'm hovering over a token before the loading screen appears. In the console, the rendering of the ImageHover is mentioned right before a warning from that module.

DaGwann commented 1 week ago

I've looked a bit more into this and what I've found is that when the image appears big, it is always followed by the second message in the screenshot.

Foundry VTT | Retrieved and compiled template modules/image-hover/templates/image-hover-template.html

Maybe the bug happens because that first image hover is loaded before the template is compiled, becoming so huge? I don't know a thing about how these things work, just giving some ideas.

24-10-11_17 33 13