We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7594c2a commit 12ea190Copy full SHA for 12ea190
lib/src/map/controller/map_controller_impl.dart
@@ -375,14 +375,13 @@ class MapControllerImpl extends ValueNotifier<_MapControllerState>
375
/// To be called when an ongoing drag movement updates.
376
void dragUpdated(MapEventSource source, Offset offset) {
377
final oldCenterPt = camera.projectAtZoom(camera.center);
378
-
379
final newCenterPt = oldCenterPt + offset;
380
+
381
// Account for world wrapping at 180/-180 boundary
382
final LatLng newCenter;
383
if (camera.crs.replicatesWorldLongitude) {
384
final worldWidth = camera.getWorldWidthAtZoom();
385
386
// If worldWidth is 0, it means world replication is irrelevant
387
if (worldWidth > 0) {
388
// Apply the same logic used in fling animation for consistency
0 commit comments