forked from bartvdbraak/blender
OSX zoom pinch was using inverted direction
This commit is contained in:
parent
9e0dd17813
commit
58e8d0b57e
@ -941,10 +941,15 @@ static int view_zoomdrag_invoke(bContext *C, wmOperator *op, wmEvent *event)
|
||||
/* As we have only 1D information (magnify value), feed both axes
|
||||
* with magnify information that is stored in x axis
|
||||
*/
|
||||
fac = 0.01f * (event->x - event->prevx);
|
||||
fac = 0.01f * (event->prevx - event->x);
|
||||
dx = fac * BLI_rctf_size_x(&v2d->cur) / 10.0f;
|
||||
dy = fac * BLI_rctf_size_y(&v2d->cur) / 10.0f;
|
||||
|
||||
if (U.uiflag & USER_ZOOM_INVERT) {
|
||||
dx *= -1;
|
||||
dy *= -1;
|
||||
}
|
||||
|
||||
RNA_float_set(op->ptr, "deltax", dx);
|
||||
RNA_float_set(op->ptr, "deltay", dy);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user