acme, to avoid unintended multiple scrolls

146 views
Skip to first unread message

fge...@gmail.com

unread,
May 31, 2016, 5:35:08 AM5/31/16
to plan9port-dev
Unintended B1/B3 double/multiple "click" (scroll) happens when B3/B1
is down and mouse is moved during scrsleep(80).

To reproduce change $PLAN9/src/cmd/acme/scrl.c with attached
repro.scrl.c then mk; ./o.acme

To avoid unintended scroll (ok.scrl.c):
1. change scrsleep() to exit before timer is up, iff button is released and
2. amend "first loop".
Drawback: no more extra quick scrolling by shaking the mouse during B1/B3 down.
Though if you need extra quick scrolling, you can change scrsleep(80)
to scrsleep(10) or less.
repro.scrl.c
ok.scrl.c

fge...@gmail.com

unread,
Dec 5, 2016, 7:36:32 PM12/5/16
to plan9port-dev
I've been using acme with this modification since May and I did not
detect any unexpected behaviour and I did not have any unintended
double-triple click since then. Shall I process this with
codereview(1) ?
Reply all
Reply to author
Forward
0 new messages