From 2ae7cf87d736bc6591bca4231e63e3c1179331b8 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 20 Jun 2026 16:47:10 +0200 Subject: [PATCH] fix(chart): disable click-drag-to-zoom on the read-only sim chart --- src/components/SimChart.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/SimChart.vue b/src/components/SimChart.vue index 5f9f67d..794c61c 100644 --- a/src/components/SimChart.vue +++ b/src/components/SimChart.vue @@ -95,7 +95,10 @@ function options(width: number): uPlot.Options { return { width, height: props.height, - cursor: { y: false }, + // No y crosshair, and no click-drag-to-zoom (uPlot's drag.setScale defaults + // on): the chart is a read-only readout — the playhead drives time, not a + // drag-selected zoom region. + cursor: { y: false, drag: { x: false, y: false } }, scales: { x: { time: false } }, series: [ {},