fixed scrolling and dragging now

This commit is contained in:
Mikayla Maki 2022-08-23 14:42:29 -07:00
parent 77670cbc7c
commit fa10b44673
2 changed files with 48 additions and 40 deletions

View file

@ -830,7 +830,7 @@ impl Element for TerminalElement {
let origin = bounds.origin() + vec2f(layout.size.cell_width, 0.);
if let Some(terminal) = self.terminal.upgrade(cx.app) {
terminal.update(cx.app, |term, _| term.scroll(e, origin));
terminal.update(cx.app, |term, _| term.scroll_wheel(e, origin));
cx.notify();
}
})