forked from MapComplete/MapComplete
UX: let loading sign appear less
This commit is contained in:
parent
e1b3f09e0a
commit
3c4109d313
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue