Outliner, using scrollwheel with mouse in scrollbar didn't scroll in the
correct direction.
This commit is contained in:
Ton Roosendaal
2006-01-03 20:59:51 +00:00
parent 5414bca7f7
commit 14d5cd1c31

View File

@@ -2292,6 +2292,8 @@ int view2dmove(unsigned short event)
else left= 0.0;
leftret= 0;
}
if((event==WHEELUPMOUSE) || (event==WHEELDOWNMOUSE))
facy= -facy;
}
else if(IN_2D_HORIZ_SCROLL((int)mvalo)) {
facx= -(G.v2d->tot.xmax-G.v2d->tot.xmin)/(float)(G.v2d->mask.xmax-G.v2d->mask.xmin);