diff --git a/components/level/basicLayout.tsx b/components/level/basicLayout.tsx index afb70e084..cc3f7fab0 100644 --- a/components/level/basicLayout.tsx +++ b/components/level/basicLayout.tsx @@ -37,13 +37,13 @@ export default function BasicLayout({ cellClassName, cellStyle, controls, hideTe onClick(index, false, isDragging); } }} - onCellMouseDown={(x, y, rightClick) => { + onCellMouseDown={deviceInfo.isMobile ? (x, y, rightClick) => { if (onClick) { const index = y * (level.width + 1) + x; onClick(index, rightClick); } - }} + } : undefined} onCellClick={!deviceInfo.isMobile ? (x, y, rightClick) => { if (onClick) { const index = y * (level.width + 1) + x;