Fix prevent interaction bug in map token

This commit is contained in:
Mitchell McCaffrey 2020-05-21 21:31:15 +10:00
parent 9ace933d30
commit daab80f45e

View File

@ -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,