Reversed context menu as it was bugged with map interaction
This commit is contained in:
parent
6bd0cefc14
commit
ef96f2f7c4
@ -114,7 +114,6 @@ function MapToken({
|
||||
}
|
||||
|
||||
function handleClick(event) {
|
||||
event.evt.preventDefault();
|
||||
if (draggable) {
|
||||
const tokenImage = event.target;
|
||||
onTokenMenuOpen(tokenState.id, tokenImage);
|
||||
@ -196,7 +195,6 @@ function MapToken({
|
||||
onTouchEnd={handlePointerUp}
|
||||
onClick={handleClick}
|
||||
onTap={handleClick}
|
||||
onContextMenu={handleClick}
|
||||
onDragEnd={handleDragEnd}
|
||||
onDragStart={handleDragStart}
|
||||
opacity={tokenOpacity}
|
||||
|
Loading…
Reference in New Issue
Block a user