Skip to content

Commit

Permalink
fix: height bug
Browse files Browse the repository at this point in the history
  • Loading branch information
P-Asta committed May 13, 2024
1 parent 390b1a5 commit 1358506
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function App() {
let overPlay = progress.current.value - audioContainer.current.currentTime / audioContainer.current.duration * 1000;
if (String(overPlay) == "NaN") overPlay = 0

if (await appWindow.isFocused() && (overPlay > 7 || overPlay < -7)) {
if (await appWindow.isFocused() && (overPlay > 10 || overPlay < -10)) {
audioContainer.current.currentTime = progress.current.value / 1000 * audioContainer.current.duration
}else {
if (audioContainer.current.paused || String(audioContainer.current.duration) == "NaN") {return}
Expand All @@ -66,7 +66,7 @@ function App() {
progressPercent = 0
}
progress.current.value = progressPercent
if (progressPercent >= 995) {
if (progressPercent >= 990) {
console.log(MODE)
if (MODE == "normal") musicNext()
if (MODE == "shuffle") {
Expand Down
2 changes: 1 addition & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ b {
padding: 12px;
min-height: 0;
height: fit-content;
max-height: 80vh;
height: 80vh;
background-color: var(--black);
overflow: scroll;
}
Expand Down

0 comments on commit 1358506

Please sign in to comment.