UX: let loading sign appear less

This commit is contained in:
Pieter Vander Vennet 2024-03-13 01:58:52 +01:00
parent e1b3f09e0a
commit 3c4109d313

View file

@ -15,8 +15,9 @@
onDestroy(Stores.Chronic(250).addCallback(
() => {
isLoading = !map.data?.isStyleLoaded() && (didChange === undefined || didChange)
if(didChange){
const mapIsLoading = !map.data?.isStyleLoaded()
isLoading = mapIsLoading && didChange
if(didChange && !mapIsLoading){
didChange = false
}
},