diff --git a/composeApp/src/desktopMain/native/macos/player_bridge.mm b/composeApp/src/desktopMain/native/macos/player_bridge.mm index 9753df3b7..dd36c26e0 100644 --- a/composeApp/src/desktopMain/native/macos/player_bridge.mm +++ b/composeApp/src/desktopMain/native/macos/player_bridge.mm @@ -1183,9 +1183,6 @@ static NSString *redactUrlsInText(NSString *text) { _webView = [[WKWebView alloc] initWithFrame:_hostView.bounds configuration:configuration]; _webView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable; _webView.wantsLayer = YES; - _webView.layerContentsRedrawPolicy = NSViewLayerContentsRedrawDuringViewResize; - _webView.layer.needsDisplayOnBoundsChange = YES; - _webView.layer.drawsAsynchronously = YES; [_webView setValue:@NO forKey:@"drawsBackground"]; [_hostView addSubview:_webView positioned:NSWindowAbove relativeTo:_videoView]; NSURL *controlsURL = [NSURL URLWithString:controlsUrl ?: @""]; diff --git a/composeApp/src/desktopMain/resources/player-ui/controls.css b/composeApp/src/desktopMain/resources/player-ui/controls.css index de86aea0c..4d8513dec 100644 --- a/composeApp/src/desktopMain/resources/player-ui/controls.css +++ b/composeApp/src/desktopMain/resources/player-ui/controls.css @@ -160,10 +160,19 @@ button:disabled { transition: opacity 160ms ease; } -.player.native-resizing, -.player.native-resizing * { +.player.native-resizing .top-gradient, +.player.native-resizing .bottom-gradient, +.player.native-resizing .metadata, +.player.native-resizing .parental-guide, +.player.native-resizing .skip-prompt, +.player.native-resizing .next-episode-card, +.player.native-resizing .header-actions, +.player.native-resizing .center-controls, +.player.native-resizing .progress, +.player.native-resizing .locked-overlay, +.player.native-resizing .modal-layer, +.player.native-resizing .track-panel { transition-duration: 1ms !important; - animation-duration: 1ms !important; } .player.chrome-hidden .top-gradient, diff --git a/composeApp/src/desktopMain/resources/player-ui/controls.js b/composeApp/src/desktopMain/resources/player-ui/controls.js index 85622c9f1..e81fe0c26 100644 --- a/composeApp/src/desktopMain/resources/player-ui/controls.js +++ b/composeApp/src/desktopMain/resources/player-ui/controls.js @@ -1391,10 +1391,6 @@ window.nuvioNativeViewportChanged = () => { if (activeModal) renderActiveModal(); }; -window.addEventListener("resize", () => { - window.nuvioNativeViewportChanged(); -}); - const trackListSignature = tracks => normalizeTracks(tracks) .map(track => [