mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 23:43:42 +00:00
prevent scrolling when zooming graph
This commit is contained in:
parent
fb347c37ac
commit
8778d82576
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue