Skip to content

Commit 12ea190

Browse files
committed
Fixed formatting
1 parent 7594c2a commit 12ea190

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/src/map/controller/map_controller_impl.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,13 @@ class MapControllerImpl extends ValueNotifier<_MapControllerState>
375375
/// To be called when an ongoing drag movement updates.
376376
void dragUpdated(MapEventSource source, Offset offset) {
377377
final oldCenterPt = camera.projectAtZoom(camera.center);
378-
379378
final newCenterPt = oldCenterPt + offset;
380-
379+
381380
// Account for world wrapping at 180/-180 boundary
382381
final LatLng newCenter;
383382
if (camera.crs.replicatesWorldLongitude) {
384383
final worldWidth = camera.getWorldWidthAtZoom();
385-
384+
386385
// If worldWidth is 0, it means world replication is irrelevant
387386
if (worldWidth > 0) {
388387
// Apply the same logic used in fling animation for consistency

0 commit comments

Comments
 (0)