[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pgtk mouse wheel speed
From: |
Jindřich Makovička |
Subject: |
pgtk mouse wheel speed |
Date: |
Sat, 13 Nov 2021 11:05:50 +0100 |
Hi,
I am really happy with the PGTK Emacs so far - about the only thing
that annoys me is the mouse scrolling wheel behavior - setting the
_per_char parameters to 2 cause Emacs to ignore every second mouse
wheel "click", which makes the scrolling really slow, at least when
one is used to the scroll rate of 5 lines per wheel click the ordinary
X Emacs uses.
I am currently applying the patch below to bring things back to normal
- is there any way to override the scrolling speed without patching the
source?
From ef7b0931cf1687b4d3af71ff1eda7a70f594be52 Mon Sep 17 00:00:00 2001
From: Jindřich Makovička <makovick@gmail.com>
Date: Sun, 25 Jul 2021 09:39:46 +0200
Subject: Scroll by 5 chars/lines per mouse whell click
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 86074d010d..adf8b77909 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -7006,8 +7006,8 @@ #define NUM_ARGV 10
}
/* smooth scroll setting */
- dpyinfo->scroll.x_per_char = 2;
- dpyinfo->scroll.y_per_line = 2;
+ dpyinfo->scroll.x_per_char = 1.0/5;
+ dpyinfo->scroll.y_per_line = 1.0/5;
x_setup_pointer_blanking (dpyinfo);
Regards,
--
Jindrich Makovicka
- pgtk mouse wheel speed,
Jindřich Makovička <=