Skip to content

Commit

Permalink
Don't cancel camera tracking on map rotation events
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbendebiene committed Jul 30, 2024
1 parent 7680495 commit 51ef75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view_models/home_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ class HomeViewModel extends ViewModel with MakeTickerProvider, PromptMediator, N

void _onMapEvent(MapEvent? event) {
// cancel tracking on user interaction or any map move not caused by the camera tracker
if (!(event is MapEventMove && (
if (!(event is MapEventRotate || event is MapEventMove && (
event.id == 'KeepCameraTracking' ||
event.id == 'AnimatedLocationLayerCameraTracking' ||
event.camera.center == event.oldCamera.center
Expand Down

0 comments on commit 51ef75a

Please sign in to comment.