CityScope / CS_cityscopeJS

Create, design, and publish @CityScope projects on the web
https://cityscope.media.mit.edu/CS_cityscopeJS/
GNU General Public License v3.0
20 stars 16 forks source link

Toggle buttons not working in side pane #126

Closed doorleyr closed 3 years ago

doorleyr commented 3 years ago

All of the toggle buttons ('Aggregated Trips', 'Mobility Simulation' etc.) stop working during the session. This only started to happen very recently (in the past couple of days). The first time I press one of these buttons during a session it will work. But after this, if I try to press the same button or any other toggle buttons, they don't work (i.e. they stay in the same state). I have to refresh the page to get them to work again.

RELNO commented 3 years ago

Thanks, good catch. I've rebased to prev. commit to address the issue, but will have to refactor later to really fix. Problem is with an aging API for global state management that is getting very slow till total halt (which is what happened in this case). I'll deprecate it as part of CSjs 2.1

Open if needed.