Fix scrolling view in newer macOS versions

This commit is contained in:
Lior Halphon
2025-07-11 14:46:16 +03:00
parent 003e8914b1
commit 6d6aafe887

View File

@@ -44,7 +44,8 @@
}
if (parent.displayScrollRect) {
NSBezierPath *path = [NSBezierPath bezierPathWithRect:CGRectInfinite];
// CGRectInfinite in NSBezierPath is broken in newer macOS versions
NSBezierPath *path = [NSBezierPath bezierPathWithRect:CGRectMake(-0x4000, -0x4000, 0x8000, 0x8000)];
for (unsigned x = 0; x < 2; x++) {
for (unsigned y = 0; y < 2; y++) {
NSRect rect = parent.scrollRect;