Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ad3fdf4d18 | |||
| 58946096a6 |
@@ -1,3 +1,8 @@
|
|||||||
|
## 1.11.5
|
||||||
|
### Bugfixes
|
||||||
|
- Fixed a bug that was causing Drag Ruler to spam useless warnings into the console (this was a regression introduced in 1.11.4)
|
||||||
|
|
||||||
|
|
||||||
## 1.11.4
|
## 1.11.4
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
- When changing the measurement mode via a keybinding (toggle snaping or toggle pathfinding) the updated ruler will now be sent to other players immediately
|
- When changing the measurement mode via a keybinding (toggle snaping or toggle pathfinding) the updated ruler will now be sent to other players immediately
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
"name": "drag-ruler",
|
"name": "drag-ruler",
|
||||||
"title": "Drag Ruler",
|
"title": "Drag Ruler",
|
||||||
"description": "When dragging a token displays a ruler showing how far you've moved that token.",
|
"description": "When dragging a token displays a ruler showing how far you've moved that token.",
|
||||||
"version": "1.11.4",
|
"version": "1.11.5",
|
||||||
"minimumCoreVersion" : "9.245",
|
"minimumCoreVersion" : "9.245",
|
||||||
"compatibleCoreVersion" : "9",
|
"compatibleCoreVersion" : "9",
|
||||||
"authors": [
|
"authors": [
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
],
|
],
|
||||||
"socket": true,
|
"socket": true,
|
||||||
"url": "https://github.com/manuelVo/foundryvtt-drag-ruler",
|
"url": "https://github.com/manuelVo/foundryvtt-drag-ruler",
|
||||||
"download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.11.4.zip",
|
"download": "https://github.com/manuelVo/foundryvtt-drag-ruler/archive/v1.11.5.zip",
|
||||||
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json",
|
"manifest": "https://raw.githubusercontent.com/manuelVo/foundryvtt-drag-ruler/master/module.json",
|
||||||
"readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md",
|
"readme": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/README.md",
|
||||||
"changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md",
|
"changelog": "https://github.com/manuelVo/foundryvtt-drag-ruler/blob/master/CHANGELOG.md",
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ async function tokenLayerUndoHistory(wrapped) {
|
|||||||
|
|
||||||
function onEntityLeftDragStart(wrapped, event) {
|
function onEntityLeftDragStart(wrapped, event) {
|
||||||
wrapped(event);
|
wrapped(event);
|
||||||
console.warn("start", Date.now());
|
|
||||||
const isToken = this instanceof Token;
|
const isToken = this instanceof Token;
|
||||||
const ruler = canvas.controls.ruler
|
const ruler = canvas.controls.ruler
|
||||||
ruler.draggedEntity = this;
|
ruler.draggedEntity = this;
|
||||||
@@ -128,7 +127,6 @@ function onEntityLeftDragMove(wrapped, event) {
|
|||||||
|
|
||||||
function onEntityDragLeftDrop(event) {
|
function onEntityDragLeftDrop(event) {
|
||||||
const ruler = canvas.controls.ruler
|
const ruler = canvas.controls.ruler
|
||||||
console.warn("stop", ruler._state, Date.now());
|
|
||||||
if (!ruler.isDragRuler) {
|
if (!ruler.isDragRuler) {
|
||||||
ruler.draggedEntity = undefined;
|
ruler.draggedEntity = undefined;
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user