mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
Add SCROLL_MULTIPLIER
Scroll wheel needs some scaling so it feels like urxvt and friends.
This commit is contained in:
parent
8018dee181
commit
452126013e
1 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,8 @@ use term::SizeInfo;
|
|||
use term::mode::TermMode;
|
||||
use util::fmt::Red;
|
||||
|
||||
const SCROLL_MULTIPLIER: usize = 3;
|
||||
|
||||
/// Processes input from glutin.
|
||||
///
|
||||
/// An escape sequence may be emitted in case specific keys or key combinations
|
||||
|
@ -439,7 +441,7 @@ impl<'a, A: ActionContext + 'a> Processor<'a, A> {
|
|||
65
|
||||
};
|
||||
|
||||
for _ in 0..(to_scroll.abs() as usize) {
|
||||
for _ in 0..(to_scroll.abs() as usize * SCROLL_MULTIPLIER) {
|
||||
self.scroll_terminal(code, modifiers)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue