Commit 78a71e8
committed
Skip the recompose-and-set side effect when the scrub-end text write fires the binding
Guard binding(for:layout:)'s set closure with !isScrubbing: onDragEnd/
handleScrollEnded write text once at scrub end purely to unfreeze the
field's display, but that write re-triggers previewIfValid, which
recomposes eyedropper.color from the still-stale, non-dragged
component values and overwrites the correct live colour right before
finishEditing(commitLiveScrubColor: true) commits it - reopening the
bug 0a768f3 just fixed via a different path.1 parent 0a768f3 commit 78a71e8
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
271 | 279 | | |
272 | 280 | | |
273 | 281 | | |
| |||
0 commit comments