wsaunders1014 / ShowDragDistance

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

Showing Drag movement for other players only shows when token is selected. #77

Open Brimcon opened 3 years ago

Brimcon commented 3 years ago

As per the title. a GM or player can only see if a player is dragging their token if that GM or Player has something selected. Error log gets slammed with this if GM has selected no tokens and a player drags a token. showdragdistance.js:125 Uncaught (in promise) TypeError: Cannot read property 'ignoreTerrain' of null at DragRuler.measure (showdragdistance.js:125) at DragRuler.update (showdragdistance.js:325) at ControlsLayer.updateDragRuler (showdragdistance.js:464) at n.Users._handleUserActivity (showdragdistance.js:442) at n.emit (index.js:83) at n.onevent (index.js:83) at n.onpacket (index.js:83) at n. (index.js:83) at n.emit (index.js:83) at n.ondecoded (index.js:83)