From 484e0555840a67b6acd7bdd3eac2b189836269f2 Mon Sep 17 00:00:00 2001 From: Ian Wagner Date: Tue, 26 Nov 2024 13:33:13 +0900 Subject: [PATCH] Fix dropped value --- .../maplibreui/views/DynamicallyOrientingNavigationView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/maplibreui/src/main/java/com/stadiamaps/ferrostar/maplibreui/views/DynamicallyOrientingNavigationView.kt b/android/maplibreui/src/main/java/com/stadiamaps/ferrostar/maplibreui/views/DynamicallyOrientingNavigationView.kt index d3c02469..e6281e54 100644 --- a/android/maplibreui/src/main/java/com/stadiamaps/ferrostar/maplibreui/views/DynamicallyOrientingNavigationView.kt +++ b/android/maplibreui/src/main/java/com/stadiamaps/ferrostar/maplibreui/views/DynamicallyOrientingNavigationView.kt @@ -116,8 +116,8 @@ fun DynamicallyOrientingNavigationView( ), theme = theme, config = config, - onClickZoomIn = { camera.value.incrementZoom(1.0) }, - onClickZoomOut = { camera.value.incrementZoom(-1.0) }, + onClickZoomIn = { camera.value = camera.value.incrementZoom(1.0) }, + onClickZoomOut = { camera.value = camera.value.incrementZoom(-1.0) }, views = views, mapViewInsets = mapViewInsets, onTapExit = onTapExit)