Skip to content

Commit

Permalink
Scroll caret into view after following Read/Play command
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Sep 3, 2024
1 parent 072b545 commit 00bfc3c
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 @@ -2953,6 +2953,8 @@ private void UpdateMouseAction(PointF location, Keys modifiers) {
} else {
Document.Caret = new CaretPosition(0, 0);
}
Recalc();
ScrollCaretIntoView(center: true);
};
}

Expand All @@ -2975,6 +2977,7 @@ private void UpdateMouseAction(PointF location, Keys modifiers) {
Document.Caret.Row = labelRow;
Document.Caret.Col = desiredVisualCol = Document.Lines[labelRow].Length;
Recalc();
ScrollCaretIntoView(center: true);
};
}

Expand Down

0 comments on commit 00bfc3c

Please sign in to comment.