wsaunders1014 / ShowDragDistance

Shows distance you dragged the token, similar to pressing ctrl.
10 stars 13 forks source link

Module no longer allows shift-dragging to random locations (auto-snapping to grid). #63

Closed metalheadzaid closed 3 years ago

metalheadzaid commented 3 years ago

Previously the module would allow me to move to any location by holding shift (and showed measurement for that) allowing for better alignment for static tokens with the background. Now it is auto snapping to grid preventing such behavior. I've had it work a few days ago with A LOT of coaxing, but with module disabled moving to a non-grid location works perfectly.

wsaunders1014 commented 3 years ago

hmm yeah I made some changes to how often the measure function fires to optimize, but I forgot to account for drag shifting

Change line 73 of showdragdistance.js to this:

 if(lastX != x || lastY !=y  || dragShift){
wsaunders1014 commented 3 years ago

Also just pushed another release with it in it.

metalheadzaid commented 3 years ago

Resolved, thanks!