Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 75bcfa0

Browse files
authored
fix(FitBounds): correct distinct algorythm (#1673)
1 parent 0442aa0 commit 75bcfa0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/directives/fit-bounds.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export class AgmFitBounds implements OnInit, OnDestroy, OnChanges {
4444
.pipe(
4545
distinctUntilChanged(
4646
(x: FitBoundsDetails, y: FitBoundsDetails) =>
47-
x.latLng.lat === y.latLng.lng
47+
x.latLng.lat === y.latLng.lat &&
48+
x.latLng.lng === y.latLng.lng
4849
),
4950
takeUntil(this._destroyed$)
5051
)

0 commit comments

Comments
 (0)