Skip to content

Commit f98d411

Browse files
ozrendevefb4f5ff-1298-471a-8973-3d47447115dcPikachuEXE
authored
Fix: Large fast forward/rewind value popup on player (#8236)
* round playback value * Update src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js Co-authored-by: PikachuEXE <[email protected]> --------- Co-authored-by: efb4f5ff-1298-471a-8973-3d47447115dc <73130443+efb4f5ff-1298-471a-8973-3d47447115dc@users.noreply.github.com> Co-authored-by: PikachuEXE <[email protected]>
1 parent f503b0b commit f98d411

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1966,7 +1966,8 @@ export default defineComponent({
19661966
const popUpLayout = seconds > 0
19671967
? { icon: 'arrow-right', invertContentOrder: true }
19681968
: { icon: 'arrow-left', invertContentOrder: false }
1969-
const formattedSeconds = Math.abs(seconds)
1969+
// `+value` converts string back to float
1970+
const formattedSeconds = +Math.abs(seconds).toFixed(2)
19701971
showValueChange(`${formattedSeconds}s`, popUpLayout.icon, popUpLayout.invertContentOrder)
19711972
}
19721973

0 commit comments

Comments
 (0)