From 463fabd38187f67bfff049a8f5dba3be53027611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marvin=20Sch=C3=BCrz?= Date: Tue, 7 Jan 2025 10:31:06 +0100 Subject: [PATCH] Fix parallax offset in beatmap carousel --- packages/common/src/screens/songSelect/BeatmapCarousel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/screens/songSelect/BeatmapCarousel.ts b/packages/common/src/screens/songSelect/BeatmapCarousel.ts index 14b88a2a..ffc1505a 100644 --- a/packages/common/src/screens/songSelect/BeatmapCarousel.ts +++ b/packages/common/src/screens/songSelect/BeatmapCarousel.ts @@ -119,7 +119,7 @@ export class BeatmapCarousel extends CompositeDrawable { this.#updateItem(item); item.parallax = this.#parallaxEnabled.value - ? (this.#scroll.current - item.y) / this.drawSize.y + ? (this.#scroll.current - item.y) / this.drawHeight - 0.5 : 0; for (const beatmap of item.beatmaps) {