Commit 7d99cdc
committed
fix: prevent false-positive item relocation when control items first appear
When control items first appear (e.g., after app restart), the previous
window IDs might be empty or not reflect the actual visible section state.
The code was falling back to checking item identity, which caused items
already in the visible section to be treated as 'new' and incorrectly
relocated.
Fix by only moving items when we have previous window IDs to compare
against - if previousIDs is empty, we can't reliably determine which
items are new to the visible section, so don't move any.
Signed-off-by: Toni Förster <toni.foerster@icloud.com>1 parent 4a3dd24 commit 7d99cdc
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2688 | 2688 | | |
2689 | 2689 | | |
2690 | 2690 | | |
2691 | | - | |
2692 | | - | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
2693 | 2697 | | |
2694 | 2698 | | |
2695 | 2699 | | |
2696 | | - | |
| 2700 | + | |
2697 | 2701 | | |
2698 | 2702 | | |
2699 | 2703 | | |
| |||
0 commit comments