Skip to content

Commit 5f9ccdf

Browse files
author
richard
committed
move mouse-up listener to the stage, should fix #3410
git-svn-id: http://svn.openstreetmap.org/applications/editors/potlatch2@25533 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
1 parent db8f119 commit 5f9ccdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: net/systemeD/potlatch2/Toolbox.mxml

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@
124124
override protected function createChildren():void {
125125
super.createChildren();
126126
super.titleBar.addEventListener(MouseEvent.MOUSE_DOWN,handleDown);
127-
super.titleBar.addEventListener(MouseEvent.MOUSE_UP,handleUp);
128127
}
129128
130129
public function updateSelectionUI():void {
@@ -135,10 +134,12 @@
135134
136135
private function handleDown(e:Event):void {
137136
this.startDrag();
137+
stage.addEventListener(MouseEvent.MOUSE_UP,handleUp);
138138
}
139139
140140
private function handleUp(e:Event):void {
141141
this.stopDrag();
142+
stage.removeEventListener(MouseEvent.MOUSE_UP,handleUp);
142143
}
143144
144145
public function toggle():void {

0 commit comments

Comments
 (0)