Disable breaking out of diff auto scroll (#3473)

* disable breaking out of auto scroll

* changeset

---------

Co-authored-by: Elephant Lumps <celestial_vault@Elephants-MacBook-Pro.local>
This commit is contained in:
EvanandElephant Lumps authored and GitHub committed 2025-05-12 12:37:05 -07:00
1 parent 7d5d347cdd
commit c79acf5ffe
2 files changed
+8 -3

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": patch
---
Disable breaking out of diff auto scroll while it's reworked
+3 -3
View File
@@ -91,9 +91,9 @@ export class DiffViewProvider {
const currentFirstVisibleLine = e.visibleRanges[0]?.start.line || 0
// If the first visible line moved upward, user scrolled up
if (currentFirstVisibleLine < this.lastFirstVisibleLine) {
this.shouldAutoScroll = false
}
// if (currentFirstVisibleLine < this.lastFirstVisibleLine) {
// this.shouldAutoScroll = false
// }
// Always update our tracking variable
this.lastFirstVisibleLine = currentFirstVisibleLine