Skip to content

Commit

Permalink
Disable non-ruler-tool drag measurement with multiple tokens selected (
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam authored Jul 24, 2024
1 parent 1dba01c commit 5812399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/canvas/ruler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RulerPF2e<TToken extends TokenPF2e | null = TokenPF2e | null> extends Rule
}

get dragMeasurement(): boolean {
return RulerPF2e.#dragMeasurement;
return RulerPF2e.#dragMeasurement && (game.activeTool === "ruler" || canvas.tokens.controlled.length <= 1);
}

get isMeasuring(): boolean {
Expand Down

0 comments on commit 5812399

Please sign in to comment.