diff --git a/src/text_box.rs b/src/text_box.rs index 9f85b11..0414daf 100644 --- a/src/text_box.rs +++ b/src/text_box.rs @@ -1213,8 +1213,8 @@ where let metrics = editor.with_buffer(|buffer| buffer.metrics()); -y * metrics.line_height } - ScrollDelta::Pixels { x: _, y } => y, - }; + ScrollDelta::Pixels { x: _, y } => -y, + } * 4.0; editor.action(Action::Scroll { pixels }); status = Status::Captured; }