Don't deselect on panning
authorRichard Fairhurst <richard@systemeD.net>
Sun, 19 Jun 2011 10:55:50 +0000 (11:55 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Sun, 19 Jun 2011 10:55:50 +0000 (11:55 +0100)
net/systemeD/potlatch2/controller/ControllerState.as

index 416216d..87ff4cb 100644 (file)
@@ -146,7 +146,7 @@ package net.systemeD.potlatch2.controller {
                                        return new SelectArea(event.localX,event.localY,selection);
                                }
 
                                        return new SelectArea(event.localX,event.localY,selection);
                                }
 
-            } else if ( (event.type==MouseEvent.CLICK || event.type==MouseEvent.MOUSE_UP) && focus == null && map.dragstate!=map.DRAGGING && !event.ctrlKey) {
+            } else if ( event.type==MouseEvent.MOUSE_UP && focus == null && map.dragstate!=map.DRAGGING && !event.ctrlKey) {
                 return (this is NoSelection) ? null : new NoSelection();
             }
                        return null;
                 return (this is NoSelection) ? null : new NoSelection();
             }
                        return null;