Commit df1cba5
committed
fix(views): seed active view on init and state restore
Tools and rendering panels gate on currentImageID, which resolves
through activeView -> viewByID[activeView].dataID. The slice
manipulator's scroll-ref watcher used to set activeView as a side
effect on first paint, so a fresh app and pre-5.0.2 session loads
both relied on that. Removing the watcher (to stop cine playback
from fighting over the active view) left activeView undefined on
both paths, so the brush/ruler/etc. buttons stayed disabled and the
layer opacity slider never rendered.
Call ensureActiveViewIsVisible after pushing the initial layout
views and after deserializing a manifest. Fixes ~10 previously
failing e2e specs (full local wdio suite goes 23/23).1 parent 4795212 commit df1cba5
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
334 | 339 | | |
335 | 340 | | |
336 | 341 | | |
| |||
353 | 358 | | |
354 | 359 | | |
355 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
356 | 365 | | |
357 | 366 | | |
358 | 367 | | |
| |||
0 commit comments