File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -120,17 +120,19 @@ export const handleMapMouseLeave = (
120
120
e : MapLayerMouseEvent | MapLayerTouchEvent ,
121
121
map : MapLibreMap | null
122
122
) => {
123
- const mapStore = useMapStore . getState ( ) ;
124
- const activeTool = mapStore . activeTool ;
125
- const sourceLayer = mapStore . mapDocument ?. parent_layer ;
126
- const setHoverFeatures = mapStore . setHoverFeatures ;
123
+ const { setHoverFeatures, setIsPainting} = useMapStore . getState ( ) ;
127
124
setHoverFeatures ( [ ] ) ;
125
+ setIsPainting ( false )
128
126
} ;
129
127
130
128
export const handleMapMouseOut = (
131
129
e : MapLayerMouseEvent | MapLayerTouchEvent ,
132
130
map : MapLibreMap | null
133
- ) => { } ;
131
+ ) => {
132
+ const { setHoverFeatures, setIsPainting} = useMapStore . getState ( ) ;
133
+ setHoverFeatures ( [ ] ) ;
134
+ setIsPainting ( false )
135
+ } ;
134
136
135
137
export const handleMapMouseMove = (
136
138
e : MapLayerMouseEvent | MapLayerTouchEvent ,
You can’t perform that action at this time.
0 commit comments