diff options
Diffstat (limited to 'src/cmd/acme/acme.c')
-rw-r--r-- | src/cmd/acme/acme.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/acme/acme.c b/src/cmd/acme/acme.c index 8d0413fa..7913eb1c 100644 --- a/src/cmd/acme/acme.c +++ b/src/cmd/acme/acme.c @@ -536,6 +536,18 @@ mousethread(void *v) } goto Continue; } + /* scroll buttons, wheels, etc. */ + if(t->what==Body && w != nil && (m.buttons & (8|16))){ + if(m.buttons & 8) + but = Kscrolloneup; + else + but = Kscrollonedown; + winlock(w, 'M'); + t->eq0 = ~0; + texttype(t, but); + winunlock(w); + goto Continue; + } if(ptinrect(m.xy, t->scrollr)){ if(but){ if(t->what == Columntag) |