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) <noreply@anthropic.com>
This commit is contained in:
Psychotoxical
2026-04-19 19:35:51 +02:00
parent 50c886fd6f
commit 2aa88d26d4
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import { useLyrics, type WordLyricsLine } from '../hooks/useLyrics';
import { useAuthStore } from '../store/authStore'; import { useAuthStore } from '../store/authStore';
import type { LrcLine } from '../api/lrclib'; import type { LrcLine } from '../api/lrclib';
import type { Track } from '../store/playerStore'; import type { Track } from '../store/playerStore';
import { EaseScroller, targetForFraction } from '../utils/springScroll'; import { EaseScroller, targetForFraction } from '../utils/easeScroll';
function formatTime(seconds: number): string { function formatTime(seconds: number): string {
if (!seconds || isNaN(seconds)) return '0:00'; if (!seconds || isNaN(seconds)) return '0:00';
+1 -1
View File
@@ -6,7 +6,7 @@ import { useLyrics, type WordLyricsLine } from '../hooks/useLyrics';
import { useAuthStore } from '../store/authStore'; import { useAuthStore } from '../store/authStore';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
import type { Track } from '../store/playerStore'; import type { Track } from '../store/playerStore';
import { EaseScroller, targetForFraction } from '../utils/springScroll'; import { EaseScroller, targetForFraction } from '../utils/easeScroll';
interface Props { interface Props {
currentTrack: Track | null; currentTrack: Track | null;