Skip to content

Commit

Permalink
Zoom the plotter faster with Ctrl
Browse files Browse the repository at this point in the history
  • Loading branch information
LevitatingBusinessMan committed Oct 2, 2023
1 parent 919a90a commit aea23d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qtgui/plotter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit aea23d5

Please sign in to comment.