Skip to content

Commit

Permalink
fix(Studio): Scrolling issues on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
psyGamer committed Nov 17, 2024
1 parent c196ed0 commit 53cfad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Studio/CelesteStudio.Mac/SkiaDrawableHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public override void DrawRect(CGRect dirtyRect) {

var ctx = NSGraphicsContext.CurrentContext.GraphicsPort;
// NOTE: macOS uses a different coordinate-system
ctx.DrawImage(new CGRect(bounds.X, Bounds.Height - bounds.Height / scale - bounds.Y, bounds.Width / scale, bounds.Height / scale), image);
ctx.DrawImage(new CGRect(bounds.X / scale, Bounds.Height - (bounds.Height + bounds.Y) / scale, bounds.Width / scale, bounds.Height / scale), image);
}

protected override void Dispose(bool disposing) {
Expand Down

0 comments on commit 53cfad9

Please sign in to comment.