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
39 stars 52 forks source link

`onEntityDragLeftDrop` does not return value #246

Open caewok opened 1 year ago

caewok commented 1 year ago

onEntityDragLeftDrop should return a boolean, and appears like it should, but does not. This appears to be because forwardIfUnahndled does not return a value. (Again, looks like it should, but I think it needs a return within the "{}" of the function.)

See https://github.com/manuelVo/foundryvtt-drag-ruler/blob/a65ff4ddb4d3e5da3efd7d6049f4575515462a01/src/main.js#L162 https://github.com/manuelVo/foundryvtt-drag-ruler/blob/a65ff4ddb4d3e5da3efd7d6049f4575515462a01/src/main.js#L79

This is a problem for me because I am trying to determine if Drag Ruler actually moves the tokens, which in theory could be known if a boolean was returned.