From 2aa88d26d4e3b994b02b75bfc87411d052b3ea0a Mon Sep 17 00:00:00 2001 From: Psychotoxical Date: Sun, 19 Apr 2026 19:35:51 +0200 Subject: [PATCH] chore(lyrics): rename springScroll.ts to easeScroll.ts After PR #214 replaced SpringScroller with EaseScroller, the filename no longer matched the exported class. Rename for clarity. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/FullscreenPlayer.tsx | 2 +- src/components/LyricsPane.tsx | 2 +- src/utils/{springScroll.ts => easeScroll.ts} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/utils/{springScroll.ts => easeScroll.ts} (100%) diff --git a/src/components/FullscreenPlayer.tsx b/src/components/FullscreenPlayer.tsx index 61e993a4..4437330e 100644 --- a/src/components/FullscreenPlayer.tsx +++ b/src/components/FullscreenPlayer.tsx @@ -13,7 +13,7 @@ import { useLyrics, type WordLyricsLine } from '../hooks/useLyrics'; import { useAuthStore } from '../store/authStore'; import type { LrcLine } from '../api/lrclib'; import type { Track } from '../store/playerStore'; -import { EaseScroller, targetForFraction } from '../utils/springScroll'; +import { EaseScroller, targetForFraction } from '../utils/easeScroll'; function formatTime(seconds: number): string { if (!seconds || isNaN(seconds)) return '0:00'; diff --git a/src/components/LyricsPane.tsx b/src/components/LyricsPane.tsx index 34dbdeef..58d32e70 100644 --- a/src/components/LyricsPane.tsx +++ b/src/components/LyricsPane.tsx @@ -6,7 +6,7 @@ import { useLyrics, type WordLyricsLine } from '../hooks/useLyrics'; import { useAuthStore } from '../store/authStore'; import { useTranslation } from 'react-i18next'; import type { Track } from '../store/playerStore'; -import { EaseScroller, targetForFraction } from '../utils/springScroll'; +import { EaseScroller, targetForFraction } from '../utils/easeScroll'; interface Props { currentTrack: Track | null; diff --git a/src/utils/springScroll.ts b/src/utils/easeScroll.ts similarity index 100% rename from src/utils/springScroll.ts rename to src/utils/easeScroll.ts