mothra: respond to scroll wheel

front
stanley lieber 2012-02-08 20:34:54 -06:00
parent c7522489a3
commit a1b1f7a24d
1 changed files with 7 additions and 0 deletions

View File

@ -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: