Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/view2d_ops.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| facy = zoomfac * WM_event_absolute_delta_y(event); | facy = zoomfac * WM_event_absolute_delta_y(event); | ||||
| if (U.uiflag & USER_ZOOM_INVERT) { | if (U.uiflag & USER_ZOOM_INVERT) { | ||||
| facx *= -1.0f; | facx *= -1.0f; | ||||
| facy *= -1.0f; | facy *= -1.0f; | ||||
| } | } | ||||
| } | } | ||||
| else { /* MOUSEZOOM */ | else { /* MOUSEZOOM */ | ||||
| facx = facy = zoomfac * WM_event_absolute_delta_x(event); | facx = facy = event->factor; | ||||
| } | } | ||||
| /* Only respect user setting zoom axis if the view does not have any zoom restrictions | /* Only respect user setting zoom axis if the view does not have any zoom restrictions | ||||
| * any will be scaled uniformly. */ | * any will be scaled uniformly. */ | ||||
| if (((v2d->keepzoom & (V2D_LOCKZOOM_X | V2D_LOCKZOOM_Y)) == 0) && | if (((v2d->keepzoom & (V2D_LOCKZOOM_X | V2D_LOCKZOOM_Y)) == 0) && | ||||
| (v2d->keepzoom & V2D_KEEPASPECT)) { | (v2d->keepzoom & V2D_KEEPASPECT)) { | ||||
| if (U.uiflag & USER_ZOOM_HORIZ) { | if (U.uiflag & USER_ZOOM_HORIZ) { | ||||
| facy = 0.0f; | facy = 0.0f; | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||