Disable pre-scrolling in location

May reveal artifacts in translucent navigation bar.
This commit is contained in:
Davide De Rosa 2022-04-18 17:25:17 +02:00
parent 017182fe81
commit 6533a6beae
1 changed files with 4 additions and 2 deletions

View File

@ -308,14 +308,16 @@ extension ProviderLocationView {
}
}
// FIXME: layout, pre-scrolling produces plenty of artifacts
extension ProviderLocationView {
private func scrollToSelectedLocation(_ proxy: ScrollViewProxy) {
proxy.maybeScrollTo(selectedServer?.locationId)
// proxy.maybeScrollTo(selectedServer?.locationId)
}
}
extension ProviderLocationView.ServerListView {
private func scrollToSelectedServer(_ proxy: ScrollViewProxy) {
proxy.maybeScrollTo(selectedServer?.id)
// proxy.maybeScrollTo(selectedServer?.id)
}
}