]> git.openstreetmap.org Git - potlatch2.git/blobdiff - net/systemeD/potlatch2/Toolbox.mxml
Merge remote-tracking branch 'gravitystorm/i18n' into staging
[potlatch2.git] / net / systemeD / potlatch2 / Toolbox.mxml
index 35b56a6db11fc7eb7ad2cc721ae72342906c17cb..a553ab6a26ee6b7be38e1db1e0e386dbac23adcf 100644 (file)
                override protected function createChildren():void {
                        super.createChildren();
                        super.titleBar.addEventListener(MouseEvent.MOUSE_DOWN,handleDown);
-                       super.titleBar.addEventListener(MouseEvent.MOUSE_UP,handleUp);
                }
 
                public function updateSelectionUI():void {
 
                private function handleDown(e:Event):void {
                        this.startDrag();
+                       stage.addEventListener(MouseEvent.MOUSE_UP,handleUp);
                }
 
                private function handleUp(e:Event):void {
                        this.stopDrag();
+                       stage.removeEventListener(MouseEvent.MOUSE_UP,handleUp);
                }
                
                public function toggle():void {