From 6bd0cefc149a7c900517da364f99b227236ba782 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Mon, 25 May 2020 16:01:15 +1000 Subject: [PATCH] Added right click support back for token menu --- src/components/map/MapToken.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/map/MapToken.js b/src/components/map/MapToken.js index 9f67bba..b2c674d 100644 --- a/src/components/map/MapToken.js +++ b/src/components/map/MapToken.js @@ -114,6 +114,7 @@ function MapToken({ } function handleClick(event) { + event.evt.preventDefault(); if (draggable) { const tokenImage = event.target; onTokenMenuOpen(tokenState.id, tokenImage); @@ -195,6 +196,7 @@ function MapToken({ onTouchEnd={handlePointerUp} onClick={handleClick} onTap={handleClick} + onContextMenu={handleClick} onDragEnd={handleDragEnd} onDragStart={handleDragStart} opacity={tokenOpacity}