Hide transform controls when locked
This commit is contained in:
parent
879a23f81a
commit
07b9f8f621
@ -321,7 +321,7 @@ function Token({
|
|||||||
) : null}
|
) : null}
|
||||||
</animated.Group>
|
</animated.Group>
|
||||||
<Transformer
|
<Transformer
|
||||||
active={selected || isTransforming}
|
active={(!tokenState.locked && selected) || isTransforming}
|
||||||
nodeRef={tokenRef}
|
nodeRef={tokenRef}
|
||||||
onTransformEnd={handleTransformEnd}
|
onTransformEnd={handleTransformEnd}
|
||||||
onTransformStart={handleTransformStart}
|
onTransformStart={handleTransformStart}
|
||||||
|
Loading…
Reference in New Issue
Block a user