Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/view2d_ops.c
| Context not available. | |||||
| double timer_lastdraw; | double timer_lastdraw; | ||||
| int lastx, lasty; /* previous x/y values of mouse in window */ | int lastx, lasty; /* previous x/y values of mouse in window */ | ||||
| int invoke_event; /* event type that invoked, for modal exits */ | int invoke_event; /* event type that invoked, for modal exits */ | ||||
| float dx, dy; /* running tally of previous delta values (for obtaining final zoom) */ | float dx, dy; /* running tally of previous delta values (for obtaining final zoom) */ | ||||
| float mx_2d, my_2d; /* initial mouse location in v2d coords */ | float mx_2d, my_2d; /* initial mouse location in v2d coords */ | ||||
| bool zoom_to_mouse_pos; | bool zoom_to_mouse_pos; | ||||
| } v2dViewZoomData; | } v2dViewZoomData; | ||||
| /** | /** | ||||
| * Clamp by convention rather then locking flags, | * Clamp by convention rather than locking flags, | ||||
| * for ndof and +/- keys | * for ndof and +/- keys | ||||
| */ | */ | ||||
| static void view_zoom_axis_lock_defaults(bContext *C, bool r_do_zoom_xy[2]) | static void view_zoom_axis_lock_defaults(bContext *C, bool r_do_zoom_xy[2]) | ||||
| { | { | ||||
| ScrArea *area = CTX_wm_area(C); | ScrArea *area = CTX_wm_area(C); | ||||
| r_do_zoom_xy[0] = true; | r_do_zoom_xy[0] = true; | ||||
| r_do_zoom_xy[1] = true; | r_do_zoom_xy[1] = true; | ||||
| /* default not to zoom the sequencer vertically */ | /* default not to zoom the sequencer vertically */ | ||||
| Context not available. | |||||