samterm: enable scroll wheel scrolling in the scrollbar (for scrolling)

front
stanley lieber 2012-04-24 19:17:22 -05:00
parent 57be281166
commit 4f1575a44e
1 changed files with 4 additions and 4 deletions

View File

@ -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();