git: 9front

Download patch

ref: af7071384121dd2c969a1bafdaf4cb3f58b0b41e
parent: 4fe48dc6b0bc5cd6a2eaf603fd1b7ed885bcd46a
author: stanley lieber <stanley.lieber@gmail.com>
date: Wed Feb 8 15:34:54 EST 2012

mothra: respond to scroll wheel

--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -398,6 +398,13 @@
 			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:
--