Reversed context menu as it was bugged with map interaction

This commit is contained in:
Mitchell McCaffrey 2020-05-25 16:12:30 +10:00
parent 6bd0cefc14
commit ef96f2f7c4

View File

@ -114,7 +114,6 @@ function MapToken({
} }
function handleClick(event) { function handleClick(event) {
event.evt.preventDefault();
if (draggable) { if (draggable) {
const tokenImage = event.target; const tokenImage = event.target;
onTokenMenuOpen(tokenState.id, tokenImage); onTokenMenuOpen(tokenState.id, tokenImage);
@ -196,7 +195,6 @@ function MapToken({
onTouchEnd={handlePointerUp} onTouchEnd={handlePointerUp}
onClick={handleClick} onClick={handleClick}
onTap={handleClick} onTap={handleClick}
onContextMenu={handleClick}
onDragEnd={handleDragEnd} onDragEnd={handleDragEnd}
onDragStart={handleDragStart} onDragStart={handleDragStart}
opacity={tokenOpacity} opacity={tokenOpacity}