[GH-ISSUE #563] bug: <diff mode={"split"} > scrolling is not synced #151

Open
opened 2026-03-02 23:44:55 +03:00 by kerem · 2 comments
Owner

Originally created by @safareli on GitHub (Jan 21, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/563

used the example of diff component packages/react/examples/diff.tsx and when diff is and as a result mouse scroll is kicked in, i can scroll added lines and removed lines independently. one would expect the scroll to move full diff.

https://github.com/user-attachments/assets/46fb2139-d18e-4059-934f-190522e063f9

Originally created by @safareli on GitHub (Jan 21, 2026). Original GitHub issue: https://github.com/anomalyco/opentui/issues/563 used the example of diff component [packages/react/examples/diff.tsx ](https://github.com/anomalyco/opentui/blob/9ad8525c4ef1878029105e18126998051ab98c56/packages/react/examples/diff.tsx) and when diff is and as a result mouse scroll is kicked in, i can scroll added lines and removed lines independently. one would expect the scroll to move full diff. https://github.com/user-attachments/assets/46fb2139-d18e-4059-934f-190522e063f9
Author
Owner

@kommander commented on GitHub (Jan 26, 2026):

That was intentional. Synced scroll could be added though.

<!-- gh-comment-id:3800787467 --> @kommander commented on GitHub (Jan 26, 2026): That was intentional. Synced scroll could be added though.
Author
Owner

@viralcodex commented on GitHub (Feb 24, 2026):

Hi @kommander, if not implemented, I can take it up, also we can have both behaviours, synced and separate as a setting flag?

<!-- gh-comment-id:3953982626 --> @viralcodex commented on GitHub (Feb 24, 2026): Hi @kommander, if not implemented, I can take it up, also we can have both behaviours, synced and separate as a setting flag?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#151
No description provided.