From 8addb0078990f8b9d3ed20781b2f9b4e5b353b38 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Fri, 21 Feb 2020 15:26:16 +0800 Subject: [PATCH] seek single frame #156 --- src/renderer.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer.jsx b/src/renderer.jsx index 55c488c9f96..ebb1192d573 100644 --- a/src/renderer.jsx +++ b/src/renderer.jsx @@ -193,8 +193,8 @@ const App = memo(() => { }, []); const shortStep = useCallback((dir) => { - seekRel((1 / 60) * dir); - }, [seekRel]); + seekRel((1 / (detectedFps || 60)) * dir); + }, [seekRel, detectedFps]); const resetState = useCallback(() => { const video = videoRef.current;