#5150 Improve wheel zoom with logarithmic axes

* Limit the amount to scroll at one time and set a fixed minimum
This commit is contained in:
Gaute Lindkvist
2019-11-30 12:08:42 +01:00
parent 538e42f278
commit 4870071b8e
5 changed files with 70 additions and 6 deletions

View File

@@ -873,6 +873,8 @@ void RimSummaryPlot::updateZoomForAxis( RiaDefines::PlotAxis plotAxis )
if ( yAxisProps->isAutoZoom() )
{
m_plotWidget->setAxisIsLogarithmic( yAxisProps->qwtPlotAxisType(), yAxisProps->isLogarithmicScaleEnabled );
if ( yAxisProps->isLogarithmicScaleEnabled )
{
std::vector<const QwtPlotCurve*> plotCurves;