Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Do not insert scrollbar hitboxes when scrollbars are disabled (#27467)

Finn Eversa605b66ce1c5
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs
index 0d715aa00ef..8ccfa0d76aa 100644
--- a/crates/editor/src/element.rs
+++ b/crates/editor/src/element.rs
@@ -1382,7 +1382,7 @@ impl EditorElement {
}
ShowScrollbar::System => self.editor.read(cx).scroll_manager.scrollbars_visible(),
ShowScrollbar::Always => true,
- ShowScrollbar::Never => false,
+ ShowScrollbar::Never => return None,
};
Some(EditorScrollbars::from_scrollbar_axes(