Skip to content

Commit

Permalink
Merge branch 'bugfix/map-marker-disappears' into beta-2.12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajhilje committed Aug 22, 2024
2 parents 7d5d84c + 885fd1b commit d461e3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IVPNClient/Scenes/MainScreen/Map/MapScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class MapScrollView: UIScrollView {
}

if updateMarkers {
updateMarkerPosition(x: point.0 - 49, y: point.1 - 49, isLocalPosition: isLocalPosition)
updateMarkerPosition(x: point.0, y: point.1, isLocalPosition: isLocalPosition)
}

currentCoordinates = (latitude, longitude)
Expand Down Expand Up @@ -252,7 +252,7 @@ class MapScrollView: UIScrollView {

private func updateMarkerPosition(x: Double, y: Double, isLocalPosition: Bool) {
if isLocalPosition {
markerLocalView.snp.updateConstraints { make in
markerLocalView.snp.remakeConstraints { make in
make.left.equalTo(x)
make.top.equalTo(y)
}
Expand All @@ -261,7 +261,7 @@ class MapScrollView: UIScrollView {
self.layoutIfNeeded()
}
} else {
markerGatewayView.snp.updateConstraints { make in
markerGatewayView.snp.remakeConstraints { make in
make.left.equalTo(x)
make.top.equalTo(y)
}
Expand Down

0 comments on commit d461e3f

Please sign in to comment.