Skip to content

Commit 8aeb0ee

Browse files
committed
Made dialogs draggable by their titles
1 parent 9be7d2e commit 8aeb0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uiwidgets/DialogBox.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ private function getCheckMark(b:Boolean):Sprite{
389389
stage.focus = labelsAndFields[focusIndex][1];
390390
}
391391

392-
private function mouseDown(evt:MouseEvent):void {if (evt.target == this) startDrag();}
392+
private function mouseDown(evt:MouseEvent):void {if (evt.target == this || evt.target == title) startDrag();}
393393
private function mouseUp(evt:MouseEvent):void { stopDrag() }
394394

395395
private function keyDown(evt:KeyboardEvent):void {

0 commit comments

Comments
 (0)