+
{tileSize !== 0 &&
setIsDragging(true)}
+ onMouseUp={() => setIsDragging(false)}
+ onTouchStart={() => setIsDragging(true)}
+ onTouchEnd={() => setIsDragging(false)}
+ onTouchMove={onMouseMove}
+ onMouseMove={(e) => {
+ onMouseMove(e);
+ }}
>
{getBackground()}
{tiles}