Skip to content

Commit c105334

Browse files
committed
fix scrolling blocked by gauges
1 parent 668095d commit c105334

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

frontend/src/components/widgets/SystemMonitorWidget/GaugeWidget.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export const GaugeWidget: React.FC<GaugeWidgetProps> = ({ value, title, size, te
2828
fill: theme.palette.text.disabled,
2929
},
3030
width: { xs: 108, xl: 135 },
31-
height: { xs: 135, xl: 135 }
31+
height: { xs: 135, xl: 135 },
32+
pointerEvents: 'none', // Allows scrolling through the SVG
33+
touchAction: 'none',
3234
})
3335
} />
3436
{/* Center Content */}

frontend/src/components/widgets/SystemMonitorWidget/SystemMonitorWidget.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export const SystemMonitorWidget = () => {
103103
return (
104104
<Grid container justifyContent={'space-evenly'} gap={0} sx={{ display: 'flex', width: '100%' }}>
105105
<div
106-
onPointerDownCapture={(e) => e.stopPropagation()} // Stop drag from interfering
107-
onClick={(e) => e.stopPropagation()} // Prevent drag from triggering on click
106+
onPointerDownCapture={(e) => e.stopPropagation()}
107+
onClick={(e) => e.stopPropagation()}
108108
>
109109
<IconButton
110110
sx={{

0 commit comments

Comments
 (0)