mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-02-03 14:24:12 +01:00
prevent scrolling when zooming graph
This commit is contained in:
parent
fb347c37ac
commit
8778d82576
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue