Commit 1fef0f0
fix: open each file scrolled to the top
Switching files never reset the diff pane's scroll position, so a tall
next file inherited the previous file's scrollTop and opened mid-way down.
Reset #diff.scrollTop after a genuine file/view switch (same-file
re-renders still keep their scroll).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lj241sZMvCV2wAuH1A65Fm1 parent 2196f67 commit 1fef0f0
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | | - | |
| 515 | + | |
| 516 | + | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
523 | 527 | | |
524 | 528 | | |
525 | 529 | | |
| |||
0 commit comments