Fix prevent interaction bug in map token
This commit is contained in:
parent
9ace933d30
commit
daab80f45e
@ -39,6 +39,7 @@ function MapToken({
|
|||||||
}, [tokenSourceImage]);
|
}, [tokenSourceImage]);
|
||||||
|
|
||||||
function handleDragEnd(event) {
|
function handleDragEnd(event) {
|
||||||
|
setPreventMapInteraction(false);
|
||||||
onTokenStateChange({
|
onTokenStateChange({
|
||||||
...tokenState,
|
...tokenState,
|
||||||
x: event.target.x() / mapWidth,
|
x: event.target.x() / mapWidth,
|
||||||
|
Loading…
Reference in New Issue
Block a user