manuelVo / foundryvtt-drag-ruler

A Foundry VTT module that shows a ruler when dragging tokens so you can see how far you've dragged them
MIT License
40 stars 52 forks source link

Label is not always showing #337

Open aeauseth opened 1 month ago

aeauseth commented 1 month ago

Sometimes the label is missing. I notice it most when I move a token left. Problem shows up in hex & square grids. Using Chrome. Able to reproduce with SimpleWorld, so my custom system isn't the problem.

image

image

image

Poked around a bit and problem seems to be related to ruler.js:335 where the label is undefined. Possibly related to dragRulerUnsnappedSegments.

Never a problem when holding down SHIFT at the start of the drag. Using SHIFT during a drag makes no difference. Issue seems to be locked in when drag starts.

manuelVo commented 1 month ago

This bug happens, when the mouse is moving over the token during dragging, which removes the label. A workaround would be to grab the token near the border of the direction you want to drag it towards and then quickly start dragging, so the mouse spends little time over the original token.

ZeroXNoxus commented 3 weeks ago

Any update on this issue yet? I would love to use the Drag Ruler in my game again, but this is sometimes really bothersome.