Added right click support back for token menu
This commit is contained in:
parent
33d7d972be
commit
6bd0cefc14
@ -114,6 +114,7 @@ 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);
|
||||||
@ -195,6 +196,7 @@ 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}
|
||||||
|
Loading…
Reference in New Issue
Block a user