Nodes stay dimmed while one is selected

This commit is contained in:
stopflock
2025-12-11 20:30:14 -06:00
parent 2047645e89
commit 8493679526
4 changed files with 24 additions and 5 deletions
+13 -4
View File
@@ -491,10 +491,19 @@ class _HomeScreenState extends State<HomeScreen> with TickerProviderStateMixin {
});
},
onUserGesture: () {
_mapInteractionHandler.handleUserGesture(
context: context,
onSelectedNodeChanged: (id) => setState(() => _selectedNodeId = id),
);
// Only clear selected node if tag sheet is not open
// This prevents nodes from losing their grey-out when map is moved while viewing tags
if (_sheetCoordinator.tagSheetHeight == 0) {
_mapInteractionHandler.handleUserGesture(
context: context,
onSelectedNodeChanged: (id) => setState(() => _selectedNodeId = id),
);
} else {
// Tag sheet is open - only handle suspected location clearing, not node selection
final appState = context.read<AppState>();
appState.clearSuspectedLocationSelection();
}
if (appState.followMeMode != FollowMeMode.off) {
appState.setFollowMeMode(FollowMeMode.off);
}