Skip to content

Commit dc4c952

Browse files
fix - removed upperbound for zooming
1 parent 902e5f7 commit dc4c952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PointCloudRenderer.APP/ViewModels/BaseSceneViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void SetAxisVisibility(bool isVisible)
2626
}
2727

2828
[RelayCommand]
29-
public void Zoom(int delta) => Scene.ZoomLevel = Math.Clamp(Scene.ZoomLevel - delta * 0.0001f, 0, 5);
29+
public void Zoom(int delta) => Scene.ZoomLevel = Math.Max(Scene.ZoomLevel - delta * 0.0001f, 0);
3030

3131
[RelayCommand]
3232
public void StartRotating()

0 commit comments

Comments
 (0)