wsaunders1014 / ShowDragDistance

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

Fix _handleDragCancel bug #95

Open edzillion opened 3 years ago

edzillion commented 3 years ago

Just a one line change to play better with other modules. AFAIK ShowDragDistance only needs to work on the token layer. It was causing conflicts with my module Blood n Guts which uses the same workflow, so I just added a check on MouseInteractionManager.prototype._handleDragCancel = function(event){ to make sure we are on the token layer.