Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

fix: preserve playback position when starting a seek (#2247)

daydreamer.jin26d200306ccb
diff --git a/src/components/ui/AudioPlayer.tsx b/src/components/ui/AudioPlayer.tsx
index d3f95a3c..1aa99f55 100644
--- a/src/components/ui/AudioPlayer.tsx
+++ b/src/components/ui/AudioPlayer.tsx
@@ -250,10 +250,12 @@ export const AudioPlayer: React.FC<AudioPlayerProps> = ({
};
const handleSliderMouseDown = () => {
+ dragTimeRef.current = currentTime;
setIsDragging(true);
};
const handleSliderTouchStart = () => {
+ dragTimeRef.current = currentTime;
setIsDragging(true);
};