feat: support horizontal mouse scrolling in buffers

This commit is contained in:
2026-10-11 14:10:20 +02:00
parent 0ca0d89b9e
commit 0d4601b612
6 changed files with 272 additions and 31 deletions
+8
View File
@@ -1735,6 +1735,14 @@ impl Editor {
}
}
pub(crate) fn scroll_diff_horizontal(&mut self, focus: Focus, right: bool, width: usize) {
if let Some(diff) = &mut self.diff
&& diff.phase == Phase::View
{
diff.scroll_horizontal(focus, right, width);
}
}
pub(crate) fn set_diff_viewport(
&mut self,
comparison_id: u64,