diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2012-02-08 20:34:54 -0600 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2012-02-08 20:34:54 -0600 |
commit | a1b1f7a24d06f271d71e70e1346483cd0ae61faa (patch) | |
tree | 2fcd86d18e7b5efb97e48172ccd07d86d58fd6ab /sys/src | |
parent | c7522489a3792242babd49980296ea21741d4426 (diff) |
mothra: respond to scroll wheel
Diffstat (limited to 'sys/src')
-rw-r--r-- | sys/src/cmd/mothra/mothra.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index 9e20fcdad..70f05c155 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -398,6 +398,13 @@ void main(int argc, char *argv[]){ break; case Emouse: mouse=e.mouse; + if(mouse.buttons & (8|16)){ + if(mouse.buttons & 8) + scrolltext(-text->size.y/24, 1); + else + scrolltext(text->size.y/24, 1); + break; + } plmouse(root, &mouse); break; case Eplumb: |