samterm: enable scroll wheel scrolling in the scrollbar (for scrolling)
parent
57be281166
commit
4f1575a44e
|
@ -94,11 +94,11 @@ threadmain(int argc, char *argv[])
|
||||||
chord &= ~4;
|
chord &= ~4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(mousep->buttons&1){
|
} else if(mousep->buttons&1 || mousep->buttons&8){
|
||||||
if(nwhich){
|
if(nwhich){
|
||||||
if(nwhich!=which)
|
if(nwhich!=which)
|
||||||
current(nwhich);
|
current(nwhich);
|
||||||
else if(scr)
|
else if(scr || mousep->buttons&8)
|
||||||
scroll(which, 1);
|
scroll(which, 1);
|
||||||
else{
|
else{
|
||||||
t=(Text *)which->user1;
|
t=(Text *)which->user1;
|
||||||
|
@ -116,8 +116,8 @@ threadmain(int argc, char *argv[])
|
||||||
scroll(which, 2);
|
scroll(which, 2);
|
||||||
else
|
else
|
||||||
menu2hit();
|
menu2hit();
|
||||||
}else if((mousep->buttons&4)){
|
}else if((mousep->buttons&4 || mousep->buttons&16)){
|
||||||
if(scr)
|
if(scr || mousep->buttons&16)
|
||||||
scroll(which, 3);
|
scroll(which, 3);
|
||||||
else
|
else
|
||||||
menu3hit();
|
menu3hit();
|
||||||
|
|
Loading…
Reference in New Issue