Skip to content

Commit 127fc4c

Browse files
committed
💄 Improve the animation for opening dialog
fix #15085
1 parent 445a738 commit 127fc4c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export abstract class Constants {
225225
public static readonly DIALOG_SAVEWORKSPACE = "dialog-saveworkspace"; // 保存工作空间
226226

227227
// timeout
228+
public static readonly TIMEOUT_OPENDIALOG = 50;
228229
public static readonly TIMEOUT_DBLCLICK = 190;
229230
public static readonly TIMEOUT_INPUT = 256;
230231
public static readonly TIMEOUT_LOAD = 300;

app/src/dialog/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ left:${left || "auto"};top:${top || "auto"}">
7878
} else {
7979
setTimeout(() => {
8080
this.element.classList.add("b3-dialog--open");
81-
});
81+
}, Constants.TIMEOUT_OPENDIALOG);
8282
}
8383
/// #if !MOBILE
8484
moveResize(this.element.querySelector(".b3-dialog__container"), options.resizeCallback);

0 commit comments

Comments
 (0)