We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db8f119 commit 5f9ccdfCopy full SHA for 5f9ccdf
net/systemeD/potlatch2/Toolbox.mxml
@@ -124,7 +124,6 @@
124
override protected function createChildren():void {
125
super.createChildren();
126
super.titleBar.addEventListener(MouseEvent.MOUSE_DOWN,handleDown);
127
- super.titleBar.addEventListener(MouseEvent.MOUSE_UP,handleUp);
128
}
129
130
public function updateSelectionUI():void {
@@ -135,10 +134,12 @@
135
134
136
private function handleDown(e:Event):void {
137
this.startDrag();
+ stage.addEventListener(MouseEvent.MOUSE_UP,handleUp);
138
139
140
private function handleUp(e:Event):void {
141
this.stopDrag();
142
+ stage.removeEventListener(MouseEvent.MOUSE_UP,handleUp);
143
144
145
public function toggle():void {
0 commit comments