Skip to content

Commit 78cf1b1

Browse files
authored
Fix for internal fade-in effect
1 parent e95ffa2 commit 78cf1b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

usergui.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ class UserGui {
633633
return;
634634
}
635635

636-
const fadeInSpeedMs = 250;
636+
const fadeInSpeedMs = 400;
637637

638638
let left = 0, top = 0;
639639

@@ -654,7 +654,7 @@ class UserGui {
654654
height: ${this.settings.window.size.height};
655655
border: 0;
656656
opacity: 0;
657-
transition: all ${500/1000}s;
657+
transition: all ${fadeInSpeedMs/1000}s;
658658
border-radius: 5px;
659659
box-shadow: rgb(0 0 0 / 6%) 10px 10px 10px;
660660
z-index: 2147483647;
@@ -669,8 +669,8 @@ class UserGui {
669669

670670
iframe.contentWindow.onload = () => {
671671
// Fade-in implementation
672-
iframe.style["opacity"] = "1";
673-
setTimeout(() => iframe.style["transition"] = "none", fadeInSpeedMs);
672+
setTimeout(() => iframe.style["opacity"] = "1", fadeInSpeedMs/2);
673+
setTimeout(() => iframe.style["transition"] = "none", fadeInSpeedMs + 500);
674674

675675
this.window = iframe.contentWindow;
676676
this.document = iframe.contentDocument;

0 commit comments

Comments
 (0)