Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/view2d_ops.c
| Show First 20 Lines • Show All 2,026 Lines • ▼ Show 20 Lines | if (event->type == MIDDLEMOUSE) { | ||||
| vsm->zone = SCROLLHANDLE_BAR; | vsm->zone = SCROLLHANDLE_BAR; | ||||
| } | } | ||||
| /* check if zoom zones are inappropriate (i.e. zoom widgets not shown), so cannot continue | /* check if zoom zones are inappropriate (i.e. zoom widgets not shown), so cannot continue | ||||
| * NOTE: see view2d.c for latest conditions, and keep this in sync with that | * NOTE: see view2d.c for latest conditions, and keep this in sync with that | ||||
| */ | */ | ||||
| if (ELEM(vsm->zone, SCROLLHANDLE_MIN, SCROLLHANDLE_MAX)) { | if (ELEM(vsm->zone, SCROLLHANDLE_MIN, SCROLLHANDLE_MAX)) { | ||||
| if (((vsm->scroller == 'h') && (v2d->scroll & V2D_SCROLL_SCALE_HORIZONTAL) == 0) || | if (((vsm->scroller == 'h') && (v2d->scroll & V2D_SCROLL_HORIZONTAL_HANDLES) == 0) || | ||||
| ((vsm->scroller == 'v') && (v2d->scroll & V2D_SCROLL_SCALE_VERTICAL) == 0)) { | ((vsm->scroller == 'v') && (v2d->scroll & V2D_SCROLL_VERTICAL_HANDLES) == 0)) { | ||||
| /* switch to bar (i.e. no scaling gets handled) */ | /* switch to bar (i.e. no scaling gets handled) */ | ||||
| vsm->zone = SCROLLHANDLE_BAR; | vsm->zone = SCROLLHANDLE_BAR; | ||||
| } | } | ||||
| } | } | ||||
| /* check if zone is inappropriate (i.e. 'bar' but panning is banned), so cannot continue */ | /* check if zone is inappropriate (i.e. 'bar' but panning is banned), so cannot continue */ | ||||
| if (vsm->zone == SCROLLHANDLE_BAR) { | if (vsm->zone == SCROLLHANDLE_BAR) { | ||||
| if (((vsm->scroller == 'h') && (v2d->keepofs & V2D_LOCKOFS_X)) || | if (((vsm->scroller == 'h') && (v2d->keepofs & V2D_LOCKOFS_X)) || | ||||
| ▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines | |||||