Commit 77671fc
committed
fix: switching back from 3M/6M/ALL froze the window buttons
setOption(...,true) re-creates the dataZoom component when returning from a band
view (which has none) to a smoke view (which has one), and ECharts emits a dataZoom
event for that rebuild — indistinguishable from a user drag. The handler treated it
as a box-select, set sel, and re-rendered, which rebuilt dataZoom again: a self-
feeding loop that looked like dead buttons. A redraw gate now ignores programmatic
dataZoom events; only real user drags select a range.1 parent 494e284 commit 77671fc
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
| |||
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| 308 | + | |
304 | 309 | | |
305 | 310 | | |
306 | 311 | | |
307 | 312 | | |
308 | 313 | | |
| 314 | + | |
309 | 315 | | |
310 | 316 | | |
311 | 317 | | |
| |||
399 | 405 | | |
400 | 406 | | |
401 | 407 | | |
| 408 | + | |
402 | 409 | | |
403 | 410 | | |
404 | 411 | | |
| |||
443 | 450 | | |
444 | 451 | | |
445 | 452 | | |
| 453 | + | |
446 | 454 | | |
447 | 455 | | |
448 | 456 | | |
| |||
0 commit comments