diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f203de..295d2cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ - Drag Ruler is now fully compatible with the `Enhanced Terrain Layer` module. ([#50](https://github.com/manuelVo/foundryvtt-drag-ruler/issues/50)) +## 1.4.6 +### Bugfixes +- Fixed a bug where a token would move to the incorrect location if it is was dragged and released very quickly ([#51](https://github.com/manuelVo/foundryvtt-drag-ruler/issues/51)) - thanks to Silver Raven for helping me track down this bug! + + ## 1.4.5 ### Bugfixes - Tiny tokens (0.5x0.5 or smaller) now snap to the coners of a square like they do in vanilla foundry ([#49](https://github.com/manuelVo/foundryvtt-drag-ruler/issues/49)) diff --git a/module.json b/module.json index 36bb15c..354349d 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "drag-ruler", "title": "Drag Ruler", "description": "When dragging a token displays a ruler showing how far you've moved that token.", - "version": "1.4.5", + "version": "1.4.6", "minimumCoreVersion" : "0.7.9", "compatibleCoreVersion" : "0.7.9", "authors": [ @@ -41,7 +41,7 @@ } ], "url": "https://github.com/manuelVo/foundryvtt-drag-ruler", - "download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.4.5.zip", + "download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.4.6.zip", "manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json", "readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md", "changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md", diff --git a/src/main.js b/src/main.js index fd8caf6..e64dccd 100644 --- a/src/main.js +++ b/src/main.js @@ -136,6 +136,7 @@ function onTokenDragLeftDrop(event) { const ruler = canvas.controls.ruler if (!ruler.isDragRuler) return false + onMouseMove.call(ruler, event); const selectedTokens = canvas.tokens.controlled ruler._state = Ruler.STATES.MOVING moveTokens.call(ruler, ruler.draggedToken, selectedTokens)