From cc5f5d2438527003d77db8a60977aac44fc5b705 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 9 Apr 2022 23:57:39 -0700 Subject: [PATCH] Swap seek/skip button order --- src/components/player/PlayerBar.tsx | 49 +++++++++++++++-------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/src/components/player/PlayerBar.tsx b/src/components/player/PlayerBar.tsx index b0d4290..b65bc99 100644 --- a/src/components/player/PlayerBar.tsx +++ b/src/components/player/PlayerBar.tsx @@ -470,38 +470,38 @@ const PlayerBar = () => { }} /> - {/* Seek Backward Button */} - + {/* Previous Song Button */} + { if (e.key === ' ' || e.key === 'Enter') { - handleSeekBackward(); + handlePrevTrack(); } }} /> - {/* Previous Song Button */} - + {/* Seek Backward Button */} + { if (e.key === ' ' || e.key === 'Enter') { - handlePrevTrack(); + handleSeekBackward(); } }} /> @@ -524,38 +524,39 @@ const PlayerBar = () => { }} /> - {/* Next Song Button */} - + + {/* Seek Forward Button */} + { if (e.key === ' ' || e.key === 'Enter') { - handleNextTrack(); + handleSeekForward(); } }} /> - {/* Seek Forward Button */} - + {/* Next Song Button */} + { if (e.key === ' ' || e.key === 'Enter') { - handleSeekForward(); + handleNextTrack(); } }} />