fix(chart): disable click-drag-to-zoom on the read-only sim chart

This commit is contained in:
Julien Calixte
2026-06-20 16:47:10 +02:00
parent 69fec5fe2e
commit 2ae7cf87d7

View File

@@ -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: [
{},