From aea23d58087457f54ee135d3b5e101986ee1ff61 Mon Sep 17 00:00:00 2001 From: "LevitatingBusinessMan (Rein Fernhout)" Date: Tue, 23 May 2023 15:47:27 +0200 Subject: [PATCH] Zoom the plotter faster with Ctrl --- src/qtgui/plotter.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qtgui/plotter.cpp b/src/qtgui/plotter.cpp index b5d17ae7ae..f017beed96 100644 --- a/src/qtgui/plotter.cpp +++ b/src/qtgui/plotter.cpp @@ -957,7 +957,12 @@ void CPlotter::wheelEvent(QWheelEvent * event) } else if (m_CursorCaptured == XAXIS) { + // Scroll faster when Ctrl is held + if (event->modifiers() & Qt::ControlModifier) { + numSteps *= 3; + } zoomStepX(pow(0.9, numSteps), px); + } else if (event->modifiers() & Qt::ControlModifier) {