mothra: keep scrolling while mouse buttons are down

This commit is contained in:
cinap_lenrek 2011-11-14 17:53:16 +01:00
parent ad08f08800
commit 6332fddecd

View file

@ -46,7 +46,6 @@ int pl_hitscrollbar(Panel *g, Mouse *m){
else if(pos>len) pos=len;
if(m->buttons&7){
g->state=DOWN;
if(g->r.min.x<=m->xy.x && m->xy.x<g->r.max.x){
sp->buttons=m->buttons;
switch(m->buttons){
case 1:
@ -66,7 +65,6 @@ int pl_hitscrollbar(Panel *g, Mouse *m){
break;
}
}
}
else{
if(!(sp->buttons&2) && g->state==DOWN && g->scrollee && g->scrollee->scroll)
g->scrollee->scroll(g->scrollee, sp->dir, sp->buttons,