Skip to content

Commit

Permalink
Fix RulerPF2e#_onMouseUp not working for normal (non-drag) measurem…
Browse files Browse the repository at this point in the history
  • Loading branch information
In3luki authored Nov 14, 2024
1 parent 038781d commit 5d56aa2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/module/canvas/ruler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,8 @@ class RulerPF2e<TToken extends TokenPF2e | null = TokenPF2e | null> extends Rule
event.ctrlKey = false;
event.metaKey = false;
if (game.activeTool === "ruler") return this._endMeasurement();
if (this.isDragMeasuring && game.activeTool === "ruler") {
return this._endMeasurement();
}
return super._onMouseUp(event);
}
return super._onMouseUp(event);
}

/** Prevent behavior from movement keys (typically Space) if token drag measurement is enabled. */
Expand Down

0 comments on commit 5d56aa2

Please sign in to comment.