Fix panic when mouse-scrolling a text_editor

This commit is contained in:
Héctor Ramón Jiménez 2025-11-01 01:41:45 +01:00
parent 200e2673cd
commit b500cd85e7
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -452,7 +452,7 @@ impl editor::Editor for Editor {
font_system.raw(),
cosmic_text::Action::Scroll {
pixels: lines as f32
* self.buffer().metrics().line_height,
* buffer_from_editor(editor).metrics().line_height,
},
);
}