Skip to content

Commit e0607a4

Browse files
committed
Fix hover exit
1 parent 63dfebd commit e0607a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arcgis_map_sdk_web/lib/src/layer_controller.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,13 @@ class LayerController {
10351035
) {
10361036
if (resultsLength < 1 ||
10371037
hitTestResult.results?[0].graphic?.attributes == null) {
1038+
for (final Graphic graphic in _graphics.keys) {
1039+
graphic.onHover?.call(false);
1040+
if (_graphics[graphic] == HoveredState.hovered) {
1041+
graphic.onExit?.call();
1042+
_graphics[graphic] = HoveredState.notHovered;
1043+
}
1044+
}
10381045
return;
10391046
}
10401047
final String? hitTestId = hitTestResult.results?[0].graphic?.attributes.id;

0 commit comments

Comments
 (0)