Skip to content

Commit

Permalink
Fix parallax offset in beatmap carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Schürz committed Jan 7, 2025
1 parent 24dc87e commit 463fabd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/screens/songSelect/BeatmapCarousel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 463fabd

Please sign in to comment.