Blender Git Loki

Git Commits -> Revision 859505a

Revision 859505a by Hans Goudey (master)
June 5, 2020, 14:01 (GMT)
UI: Pan 2D Region When Dragging to Boundary

This adds a modal operator called Edge Pan, which is meant to run invisibly
while something inside a region is being dragged. This patch applies this
to dragging panels, but it can be used elsewhere too.

The speed (which is defined relative to how far the mouse is beyond the
boundary) and delay are easily adjustible. and the speed also increases
smoothly from a start value to a max to make it feel more interactive
and less robotic.

Differential Revision: https://developer.blender.org/D7465

Commit Details:

Full Hash: 859505a3dae8b23a44c7216b9a3aa753594ae1b0
Parent Commit: 1270984
Lines Changed: +209, -10

2 Modified Paths:

/source/blender/editors/interface/interface_panel.c (+24, -10) (Diff)
/source/blender/editors/interface/view2d_ops.c (+185, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021