macOS: Update core surface size when config changes (#9525)

More or less the same as #9523, but for config reloads. Matters if
`scrollbar = never` has been added or removed since the last config
reload.
pull/9528/head
Lukas 2025-11-09 08:59:38 +01:00 committed by GitHub
commit 0e42145027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class SurfaceScrollView: NSView {
surfaceView.$derivedConfig
.sink { [weak self] _ in
DispatchQueue.main.async { [weak self] in
self?.synchronizeAppearance()
self?.handleConfigChange()
}
}
.store(in: &cancellables)
@ -232,6 +232,12 @@ class SurfaceScrollView: NSView {
private func handleScrollerStyleChange() {
synchronizeCoreSurface()
}
/// Handles config changes
private func handleConfigChange() {
synchronizeAppearance()
synchronizeCoreSurface()
}
/// Handles live scroll events (user actively dragging the scrollbar).
///