Skip to content

Commit

Permalink
seek single frame #156
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Feb 21, 2020
1 parent 3efd4ef commit 8addb00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8addb00

Please sign in to comment.