Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Fix autoscroll flickering regression (#24758)
smit522b8d662cc1
diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rsindex a13278a4013..9a5b7da6ffa 100644--- a/crates/editor/src/element.rs+++ b/crates/editor/src/element.rs@@ -7188,7 +7188,7 @@ impl Element for EditorElement {let autoscrolled = if autoscroll_horizontally {editor.autoscroll_horizontally(start_row,- editor_width - (letter_size.width / 2.0),+ editor_width - (letter_size.width / 2.0) + style.scrollbar_width,scroll_width,em_width,&line_layouts,@@ -7279,7 +7279,7 @@ impl Element for EditorElement {let autoscrolled = if autoscroll_horizontally {editor.autoscroll_horizontally(start_row,- editor_width - (letter_size.width / 2.0),+ editor_width - (letter_size.width / 2.0) + style.scrollbar_width,scroll_width,em_width,&line_layouts,