prevent scrolling when zooming graph

This commit is contained in:
Jan Käberich 2022-12-12 23:09:27 +01:00
parent fb347c37ac
commit 8778d82576

View File

@ -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();
}
}