Compare commits

...

2 Commits

Author SHA1 Message Date
Hördle Bot
aed300b1bb Bump version to 0.1.6.23 2025-12-05 23:55:24 +01:00
Hördle Bot
e93b3b9096 Keep playback cursor visible when pausing in waveform editor 2025-12-05 23:55:21 +01:00
2 changed files with 3 additions and 4 deletions

View File

@@ -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;

View File

@@ -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",