Don't drop a point if the user pans in a drawing mode
authorRichard Fairhurst <richard@systemed.net>
Sat, 7 Aug 2010 09:41:47 +0000 (09:41 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sat, 7 Aug 2010 09:41:47 +0000 (09:41 +0000)
net/systemeD/potlatch2/EditController.as

index ec93c13..15094eb 100644 (file)
@@ -78,6 +78,7 @@ package net.systemeD.potlatch2 {
 
         private function mapMouseEvent(event:MouseEvent):void {
             map.stage.focus = map.parent;
+            if (event.type==MouseEvent.MOUSE_UP && map.dragstate==map.DRAGGING) { return; }
             
             var mapLoc:Point = map.globalToLocal(new Point(event.stageX, event.stageY));
             event.localX = mapLoc.x;