9front - general discussion about 9front
 help / color / mirror / Atom feed
From: kemal <kemali13@protonmail.com>
To: "9front@9front.org" <9front@9front.org>
Subject: [9front] acme: increase scroll wheels speed
Date: Sat, 10 Apr 2021 15:24:15 +0000	[thread overview]
Message-ID: <lPbAfVBO9gIWBs6OTFpTbShoTKuk7NRogGenfOH5hvGTY8x2DPd-eXB6WQi_tO_UvM0mSoEgvaRUlBuAHVt8cOQZBX6aV7Q81Pjg0k13OuA=@protonmail.com> (raw)

i was used to sam's fast scrolling, acme's scrolling was slow.
i have seen that there were attempts made to get it aligned
with rio and sam (d0a53c92a84d), but there was a problem
so it was reverted back (a43c3e5624da). i think this change
gets it align with sam and rio (and i tried to compare, seems
to be same) but not sure.

diff -r cc8420fa5fce sys/src/cmd/acme/acme.c
--- a/sys/src/cmd/acme/acme.c	Fri Apr 09 16:48:07 2021 +0200
+++ b/sys/src/cmd/acme/acme.c	Sat Apr 10 18:11:38 2021 +0300
@@ -526,9 +526,9 @@
 			/* scroll buttons, wheels, etc. */
 			if(t->what==Body && w != nil && (m.buttons & (8|16))){
 				if(m.buttons & 8)
-					but = Kscrolloneup;
+					but = Kup;
 				else
-					but = Kscrollonedown;
+					but = Kdown;
 				winlock(w, 'M');
 				t->eq0 = ~0;
 				texttype(t, but);

                 reply	other threads:[~2021-04-10 15:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='lPbAfVBO9gIWBs6OTFpTbShoTKuk7NRogGenfOH5hvGTY8x2DPd-eXB6WQi_tO_UvM0mSoEgvaRUlBuAHVt8cOQZBX6aV7Q81Pjg0k13OuA=@protonmail.com' \
    --to=kemali13@protonmail.com \
    --cc=9front@9front.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.
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 NNTP newsgroup(s).