mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
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:
@@ -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';
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user