* Changed scroll bar scale handles back to scaling from either side, rather than...
authorMatt Ebb <matt@mke3.net>
Thu, 19 Nov 2009 04:13:18 +0000 (04:13 +0000)
committerMatt Ebb <matt@mke3.net>
Thu, 19 Nov 2009 04:13:18 +0000 (04:13 +0000)
source/blender/editors/interface/view2d_ops.c

index 79f000113e8218ac7a3d2685ad03d3cbc0defe26..92d4c4271d84cc62302959092a12966248e2b4a7 100644 (file)
@@ -1165,14 +1165,15 @@ static void scroller_activate_apply(bContext *C, wmOperator *op)
        /* type of movement */
        switch (vsm->zone) {
                case SCROLLHANDLE_MIN:
-               case SCROLLHANDLE_MAX:
-                       
                        /* only expand view on axis if zoom is allowed */
                        if ((vsm->scroller == 'h') && !(v2d->keepzoom & V2D_LOCKZOOM_X))
                                v2d->cur.xmin -= temp;
                        if ((vsm->scroller == 'v') && !(v2d->keepzoom & V2D_LOCKZOOM_Y))
                                v2d->cur.ymin -= temp;
-               
+                       break;
+                       
+               case SCROLLHANDLE_MAX:
+                       
                        /* only expand view on axis if zoom is allowed */
                        if ((vsm->scroller == 'h') && !(v2d->keepzoom & V2D_LOCKZOOM_X))
                                v2d->cur.xmax += temp;