diff --git a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp index d369377847..046832e6bd 100644 --- a/ApplicationCode/UserInterface/RiuWellLogPlot.cpp +++ b/ApplicationCode/UserInterface/RiuWellLogPlot.cpp @@ -121,13 +121,16 @@ void RiuWellLogPlot::wheelEvent(QWheelEvent* event) return; } - if (event->delta() > 0) + if (event->modifiers() & Qt::ControlModifier) { - m_plotDefinition->zoomDepth(RIU_SCROLLWHEEL_ZOOMFACTOR); - } - else - { - m_plotDefinition->zoomDepth(1.0/RIU_SCROLLWHEEL_ZOOMFACTOR); + if (event->delta() > 0) + { + m_plotDefinition->zoomDepth(RIU_SCROLLWHEEL_ZOOMFACTOR); + } + else + { + m_plotDefinition->zoomDepth(1.0/RIU_SCROLLWHEEL_ZOOMFACTOR); + } } event->accept();