drag ways (still needs undo though)
[potlatch2.git] / net / systemeD / potlatch2 / controller / SelectedWay.as
index 651d666ef7e6784310b3d664a555ef9c6d23ffe3..3e4ff8e7d9a9921239b7adaa31ea47ff56c56c2d 100644 (file)
@@ -48,9 +48,6 @@ package net.systemeD.potlatch2.controller {
                                } else if ( entity is Way && event.ctrlKey ) {
                                        // merge way
                                        mergeWith(entity as Way);
-                               } else if ( entity is Way ) {
-                                       // select way
-                    selectWay(entity as Way);
                 } else if ( focus == null && map.dragstate!=map.DRAGGING ) {
                     return new NoSelection();
                                }
@@ -65,6 +62,8 @@ package net.systemeD.potlatch2.controller {
                     var d:DragWayNode=new DragWayNode(selectedWay, addNode(event), event, true);
                                        d.forceDragStart();
                                        return d;
+                               } else if ( entity is Way ) {
+                                       return new DragWay(focus as Way, event);
                                } else if ( entity is Node && entity.hasParent(selectedWay) ) {
                                        // select node within this way
                     return new DragWayNode(selectedWay, Node(entity), event, false);