Fix camera jumping when opening InfoPanel
All checks were successful
Build Docker Image / build (push) Successful in 4m17s
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:
@@ -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: () => []
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user