We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31ed846 commit 4988d5cCopy full SHA for 4988d5c
1 file changed
assets/js/dashboard/components/graph.tsx
@@ -338,7 +338,11 @@ function InnerGraph<T extends ReadonlyArray<number | null>>({
338
return (
339
<svg
340
onClick={onClick}
341
- onPointerUp={onClick}
+ onPointerUp={(e) => {
342
+ if (e.pointerType === 'touch' && typeof onClick === 'function') {
343
+ onClick()
344
+ }
345
+ }}
346
ref={svgRef}
347
viewBox={`0 0 ${width} ${height}`}
348
className={classNames('w-full h-auto [touch-action:pan-y]', className)}
0 commit comments