Skip to content

Commit 32bcc8b

Browse files
committedMar 19, 2023
Ensure wheelFactor is at least 1.01
1 parent 2201fc6 commit 32bcc8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/qgsmapcanvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2621,7 +2621,7 @@ void QgsMapCanvas::wheelEvent( QWheelEvent *e )
26212621

26222622
void QgsMapCanvas::setWheelFactor( double factor )
26232623
{
2624-
mWheelZoomFactor = factor;
2624+
mWheelZoomFactor = std::max( factor, 1.01 );
26252625
}
26262626

26272627
void QgsMapCanvas::zoomIn()

0 commit comments

Comments
 (0)
Please sign in to comment.