From: "Jindřich Makovička" <makovick@gmail.com>
To: emacs-devel@gnu.org
Subject: pgtk mouse wheel speed
Date: Sat, 13 Nov 2021 11:05:50 +0100 [thread overview]
Message-ID: <20211113110550.7f150ecb@holly> (raw)
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
next reply other threads:[~2021-11-13 10:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-13 10:05 Jindřich Makovička [this message]
2021-11-13 10:18 ` pgtk mouse wheel speed Po Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211113110550.7f150ecb@holly \
--to=makovick@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).