fix offlines cameras loading on zoom out

This commit is contained in:
stopflock
2025-08-21 19:20:45 -05:00
parent 1272eb9409
commit 32507e1646
2 changed files with 3 additions and 39 deletions
+3 -2
View File
@@ -207,8 +207,9 @@ class _MapViewState extends State<MapView> {
if (session != null) {
appState.updateSession(target: pos.center);
}
// Only request more cameras if the user navigated the map (and at valid zoom)
if (gesture && pos.zoom >= 10) {
// Request more cameras on any map movement/zoom at valid zoom level
// This ensures cameras load even when zooming without panning (like with zoom buttons)
if (pos.zoom >= 10) {
_debounce(_refreshCamerasFromProvider);
}
},