Fix panic when mouse-scrolling a text_editor
This commit is contained in:
parent
200e2673cd
commit
b500cd85e7
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue