Fix camera jumping when opening InfoPanel
All checks were successful
Build Docker Image / build (push) Successful in 4m17s

Replace setTimeout/debounce with event-based approach:
- Add isInfoLoading computed that tracks all info loading states
- Pass infoLoading prop through CatalogPage to CatalogMap
- Watch infoLoading transition from true->false to trigger fitBounds
- Remove setTimeout hack in favor of proper loading state detection
This commit is contained in:
Ruslan Bakiev
2026-01-27 12:25:15 +07:00
parent 497a80f0c6
commit f269c0daf0
3 changed files with 28 additions and 23 deletions

View File

@@ -24,6 +24,7 @@
:hovered-item-id="hoveredId"
:hovered-item="hoveredItem"
:related-points="relatedPoints"
:info-loading="infoLoading"
@select-item="onMapSelect"
@bounds-change="onBoundsChange"
/>
@@ -250,6 +251,7 @@ const props = withDefaults(defineProps<{
items?: MapItem[]
showPanel?: boolean
filterByBounds?: boolean
infoLoading?: boolean
relatedPoints?: Array<{
uuid: string
name: string
@@ -266,6 +268,7 @@ const props = withDefaults(defineProps<{
items: () => [],
showPanel: false,
filterByBounds: false,
infoLoading: false,
relatedPoints: () => []
})