mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
Revert "perf(fs-player): cut CPU under WebKitGTK software compositing"
This reverts commit77edfaa867. Restores the full Apple Music-style lyrics visuals from PR #205 on Linux: rAF spring scroller, per-line scale transforms, text-shadows, title glow, album-art/play-button outer glows, mesh-blob radial gradients, and the FS-art opacity crossfade. PR #205's author noticed the Linux codepath lost the intended feel — the CPU tradeoff is accepted. The trigger-ref fix from25537f27for the lyrics menu stays in place. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -40,15 +40,6 @@ export class SpringScroller {
|
||||
|
||||
scrollTo(targetY: number) {
|
||||
this.target = Math.max(0, targetY);
|
||||
// Software-rendered Linux: replace our 60 fps rAF spring with the
|
||||
// browser's native smooth scroll. The browser handles easing internally
|
||||
// (one animation, not 60 JS callbacks per second) and we still get a
|
||||
// smooth visual instead of a hard snap.
|
||||
if (document.documentElement.classList.contains('no-compositing')) {
|
||||
this.stop();
|
||||
this.container.scrollTo({ top: this.target, behavior: 'smooth' });
|
||||
return;
|
||||
}
|
||||
if (this.rafId === null) this.tick();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user