From 8778d82576ae3fdc9316c390beeea4dab8866ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Mon, 12 Dec 2022 23:09:27 +0100 Subject: [PATCH] prevent scrolling when zooming graph --- Software/PC_Application/LibreVNA-GUI/Traces/traceplot.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Software/PC_Application/LibreVNA-GUI/Traces/traceplot.cpp b/Software/PC_Application/LibreVNA-GUI/Traces/traceplot.cpp index a42f9a5..6baf18e 100644 --- a/Software/PC_Application/LibreVNA-GUI/Traces/traceplot.cpp +++ b/Software/PC_Application/LibreVNA-GUI/Traces/traceplot.cpp @@ -418,6 +418,7 @@ void TracePlot::wheelEvent(QWheelEvent *event) bool vertically = !(QApplication::keyboardModifiers() & Qt::ControlModifier); double factor = pow(pref.Graphs.zoomFactor, (double) event->angleDelta().y() / 120.0); zoom(event->pos(), factor, horizontally, vertically); + event->accept(); } }