diff --git a/.gitignore b/.gitignore index f28b76f..b967bbb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ node_modules !.env.example vite.config.js.timestamp-* vite.config.ts.timestamp-* -data/pending \ No newline at end of file +data/pending +.vscode \ No newline at end of file diff --git a/package.json b/package.json index ceb53a6..237679c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aquavox", - "version": "2.0.3", + "version": "2.3.0", "private": false, "scripts": { "dev": "vite dev", diff --git a/src/app.css b/src/app.css index 03b75b4..6ceabcd 100644 --- a/src/app.css +++ b/src/app.css @@ -29,3 +29,10 @@ h2 { .text-shadow-none { text-shadow: none; } + +body, +html { + position: fixed; + overflow: hidden; + overscroll-behavior: none; +} diff --git a/src/lib/components/lyrics/lyricLine.svelte b/src/lib/components/lyrics/lyricLine.svelte new file mode 100644 index 0000000..dedc193 --- /dev/null +++ b/src/lib/components/lyrics/lyricLine.svelte @@ -0,0 +1,162 @@ + + + + +
- LyricIndex: {currentLyricIndex} PositionIndex: {currentPositionIndex} - AnimationIndex:{currentAnimationIndex} - NextUpdate: {$nextUpdate} - Progress: {progress.toFixed(2)} - scrollPosition: {lyricsContainer.scrollTop} -
-+ LyricIndex: {currentLyricIndex} PositionIndex: {currentPositionIndex} + AnimationIndex:{currentAnimationIndex} + NextUpdate: {$nextUpdate} + Progress: {progress.toFixed(2)} + scrollPosition: {lyricsContainer.scrollTop} +
+- {#if originalLyrics.scripts[i].singer} - {originalLyrics.scripts[i].singer} + bind:this={lyricsContainer} + on:scroll={scrollHandler} + > + {#each lyrics as lyric, i} + + +
+ {#if originalLyrics.scripts[i].singer} + {originalLyrics.scripts[i].singer} + {/if} + {lyric} +
+ {#if originalLyrics.scripts[i].translation && showTranslation} +