Compare commits
2 Commits
cdd2ff15d5
...
aed300b1bb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aed300b1bb | ||
|
|
e93b3b9096 |
@@ -240,18 +240,17 @@ export default function WaveformEditor({ audioUrl, startTime, duration, unlockSt
|
|||||||
if (savePosition && playbackPosition !== null) {
|
if (savePosition && playbackPosition !== null) {
|
||||||
// Save current position for resume
|
// Save current position for resume
|
||||||
setPausedPosition(playbackPosition);
|
setPausedPosition(playbackPosition);
|
||||||
|
// Keep playbackPosition visible (don't set to null) so cursor stays visible
|
||||||
} else {
|
} else {
|
||||||
// Clear paused position if stopping completely
|
// Clear paused position if stopping completely
|
||||||
setPausedPosition(null);
|
setPausedPosition(null);
|
||||||
setPausedType(null);
|
setPausedType(null);
|
||||||
|
setPlaybackPosition(null);
|
||||||
}
|
}
|
||||||
sourceRef.current?.stop();
|
sourceRef.current?.stop();
|
||||||
setIsPlaying(false);
|
setIsPlaying(false);
|
||||||
setPlayingSegment(null);
|
setPlayingSegment(null);
|
||||||
setIsPlayingFullTitle(false);
|
setIsPlayingFullTitle(false);
|
||||||
if (!savePosition) {
|
|
||||||
setPlaybackPosition(null);
|
|
||||||
}
|
|
||||||
if (animationFrameRef.current) {
|
if (animationFrameRef.current) {
|
||||||
cancelAnimationFrame(animationFrameRef.current);
|
cancelAnimationFrame(animationFrameRef.current);
|
||||||
animationFrameRef.current = null;
|
animationFrameRef.current = null;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hoerdle",
|
"name": "hoerdle",
|
||||||
"version": "0.1.6.22",
|
"version": "0.1.6.23",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user