Don't re-measure when the shift key is being pressed while a token is following the currently active ruler

This commit is contained in:
Manuel Vögele
2021-05-18 13:03:04 +02:00
parent e63ee1988d
commit a413d44795
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -115,6 +115,8 @@ function onKeyShift(up) {
const ruler = canvas.controls.ruler
if (!ruler.isDragRuler)
return false
if (ruler._state !== Ruler.STATES.MEASURING)
return false;
const mousePosition = canvas.app.renderer.plugins.interaction.mouse.getLocalPosition(canvas.tokens)
const rulerOffset = ruler.rulerOffset