1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00

Add SCROLL_MULTIPLIER

Scroll wheel needs some scaling so it feels like urxvt and friends.
This commit is contained in:
Joe Wilm 2018-03-07 09:56:19 -08:00
parent 143c28953c
commit 8520a280f7

View file

@ -34,6 +34,8 @@ use term::SizeInfo;
use term::mode::{self, TermMode}; use term::mode::{self, TermMode};
use util::fmt::Red; use util::fmt::Red;
const SCROLL_MULTIPLIER: usize = 3;
/// Processes input from glutin. /// Processes input from glutin.
/// ///
/// An escape sequence may be emitted in case specific keys or key combinations /// An escape sequence may be emitted in case specific keys or key combinations
@ -397,7 +399,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
65 65
}; };
for _ in 0..(to_scroll.abs() as usize) { for _ in 0..(to_scroll.abs() as usize * SCROLL_MULTIPLIER) {
self.scroll_terminal(mouse_modes, code) self.scroll_terminal(mouse_modes, code)
} }