Closed tunglinn closed 9 months ago
Right now, only the scorecard updates. Should the dropdown also change?
Should the dropdown also change?
I think probably? Otherwise you get into a weird UI state where the UI components aren't in sync. What do you think?
Should the dropdown also change?
I think probably? Otherwise you get into a weird UI state where the UI components aren't in sync. What do you think?
I agree. My concern is how do we differentiate between changes in the dropdown by the user versus by a function. Because if we don't, then changing the dropdown will also 'snap' the map view to the other city.
then changing the dropdown will also 'snap' the map view to the other city.
we want that, right? That's the current behavior.
we want that, right? That's the current behavior.
Yes, for switching cities via the dropdown.
But if the dropdown updates when the user is dragging to another city, then the same setMapToCity()
is called and snaps view to city, which will make it difficult for users to just drag around the map.
Resolves #112