diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2012-04-24 19:17:22 -0500 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2012-04-24 19:17:22 -0500 |
commit | 4f1575a44ee0a22e1a8c8e6dbcc552f36fa69480 (patch) | |
tree | cbc8d01965a903e7be06f62f572ee59b63ad48c4 | |
parent | 57be281166b2707c6fcf791c1447dccefade44a2 (diff) | |
download | plan9front-4f1575a44ee0a22e1a8c8e6dbcc552f36fa69480.tar.xz |
samterm: enable scroll wheel scrolling in the scrollbar (for scrolling)
-rw-r--r-- | sys/src/cmd/samterm/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/cmd/samterm/main.c b/sys/src/cmd/samterm/main.c index c9b29df4d..6b90ca2b0 100644 --- a/sys/src/cmd/samterm/main.c +++ b/sys/src/cmd/samterm/main.c @@ -94,11 +94,11 @@ threadmain(int argc, char *argv[]) chord &= ~4; } } - } else if(mousep->buttons&1){ + } else if(mousep->buttons&1 || mousep->buttons&8){ if(nwhich){ if(nwhich!=which) current(nwhich); - else if(scr) + else if(scr || mousep->buttons&8) scroll(which, 1); else{ t=(Text *)which->user1; @@ -116,8 +116,8 @@ threadmain(int argc, char *argv[]) scroll(which, 2); else menu2hit(); - }else if((mousep->buttons&4)){ - if(scr) + }else if((mousep->buttons&4 || mousep->buttons&16)){ + if(scr || mousep->buttons&16) scroll(which, 3); else menu3hit(); |