Buttons 4 and 5.

This commit is contained in:
rsc 2004-06-09 14:01:43 +00:00
parent ff8bbc7987
commit c16f1f733b
3 changed files with 24 additions and 3 deletions

View file

@ -536,6 +536,18 @@ mousethread(void *v)
}
goto Continue;
}
/* scroll buttons, wheels, etc. */
if(t->what==Body && w != nil && (m.buttons & (8|16))){
if(m.buttons & 8)
but = Kscrolloneup;
else
but = Kscrollonedown;
winlock(w, 'M');
t->eq0 = ~0;
texttype(t, but);
winunlock(w);
goto Continue;
}
if(ptinrect(m.xy, t->scrollr)){
if(but){
if(t->what == Columntag)