#8982 Allow mouse wheel zoom for a single sub plot

This commit is contained in:
Magne Sjaastad 2022-05-31 13:31:47 +02:00
parent c7cf6d19f8
commit 33f0831de5

View File

@ -198,6 +198,9 @@ void RimSummaryMultiPlot::insertPlot( RimPlot* plot, size_t index )
sumPlot->curvesChanged.connect( this, &RimSummaryMultiPlot::onSubPlotChanged );
RimMultiPlot::insertPlot( plot, index );
}
if ( summaryPlots().size() == 1 ) m_disableWheelZoom = false;
if ( summaryPlots().size() == 2 ) m_disableWheelZoom = true;
}
//--------------------------------------------------------------------------------------------------