mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
smoother ProgressDialog moving when EDT is not very responsive
This commit is contained in:
@@ -170,7 +170,9 @@ class ProgressDialog implements Disposable {
|
||||
if (myLastClicked == null) {
|
||||
return;
|
||||
}
|
||||
final Point draggedTo = new RelativePoint(e).getScreenPoint();
|
||||
// use absolute location, because the relative point was set when creating the event, and the dialog might have been moved since that
|
||||
// (e.g. if processing of previous events was delayed by something)
|
||||
final Point draggedTo = e.getLocationOnScreen();
|
||||
draggedTo.x -= myLastClicked.x;
|
||||
draggedTo.y -= myLastClicked.y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user