Skip to content

Commit

Permalink
clamp minZoomLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
vodemn committed Jun 14, 2023
1 parent cc56f7f commit 6eab2ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CameraContainerBloc extends EvSourceBlocBase<CameraContainerEvent, CameraC
_zoomRange = await Future.wait<double>([
_cameraController!.getMinZoomLevel(),
_cameraController!.getMaxZoomLevel(),
]).then((levels) => RangeValues(levels[0], math.min(_maxZoom, levels[1])));
]).then((levels) => RangeValues(math.max(1.0, levels[0]), math.min(_maxZoom, levels[1])));
_currentZoom = _zoomRange!.start;

_exposureOffsetRange = await Future.wait<double>([
Expand Down

0 comments on commit 6eab2ce

Please sign in to comment.