fix creating ways duplicate node bug, and connecting to existing way-node bug
[potlatch2.git] / net / systemeD / potlatch2 / controller / CreateWay.as
index 9f239341e75c3b797a7cdbf7a763f85612f335fd..d8878bb09d0a853e5610e084c6b8d6c86413f654 100644 (file)
@@ -18,7 +18,7 @@ package net.systemeD.potlatch2.controller {
         
         override public function processMouseEvent(event:MouseEvent, entity:Entity):ControllerState {
             var focus:Entity = NoSelection.getTopLevelFocusEntity(entity);
-            if ( event.type == MouseEvent.CLICK ) {
+            if ( event.type == MouseEvent.MOUSE_UP ) {
                 if ( focus == null ) {
                     var lat:Number = controller.map.coord2lat(event.localY);
                     var lon:Number = controller.map.coord2lon(event.localX);