Skip to content

Commit

Permalink
fix(Studio): Inputs flickering / disappearing on WPF
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Oct 28, 2024
1 parent 5136887 commit a0adca2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Studio/CelesteStudio/Editing/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ public Editor(Document document, Scrollable scrollable) {
// Ignore vertical and small horizontal size changes
scrollableSize.Height = scrollable.ClientSize.Height;
if (Math.Abs(scrollableSize.Width - scrollable.ClientSize.Width) <= 0.1f) {
Invalidate(); // Update SkiaDrawable
return;
}

Expand All @@ -351,6 +352,8 @@ public Editor(Document document, Scrollable scrollable) {
// Update wrapped lines
if (Settings.Instance.WordWrapComments) {
Recalc();
} else {
Invalidate(); // Update SkiaDrawable
}
};

Expand Down

0 comments on commit a0adca2

Please sign in to comment.