IDEA-80459 allow drag to finish before detaching drag helper

This commit is contained in:
Dennis Ushakov
2012-01-29 17:05:20 +04:00
parent f9b5732fa8
commit 6b2775668d
@@ -75,6 +75,10 @@ public abstract class MouseDragHelper implements MouseListener, MouseMotionListe
}
private void attach() {
if (myDetachPostponed) {
myDetachPostponed = false;
return;
}
myGlassPane = IdeGlassPaneUtil.find(myDragComponent);
myGlassPane.addMousePreprocessor(this, myParentDisposable);
myGlassPane.addMouseMotionPreprocessor(this, myParentDisposable);