Skip to content

Commit c09225d

Browse files
committed
fix loop
1 parent 3f2db6c commit c09225d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/ui/transport.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,11 @@ export const TransportControls = () => {
155155
const endFrame = durationFrames - 1
156156
if (nextFloat > endFrame) {
157157
if (loop) {
158-
frameRef.current = 0
159-
frameFloatRef.current = 0
160158
playbackStartFrameRef.current = 0
161159
playbackStartTimeRef.current = timestamp
162-
lastSetFrameRef.current = 0
163160
scheduleFrameCommit(0)
164161
rafRef.current = requestAnimationFrame(tick)
165162
} else {
166-
frameRef.current = endFrame
167-
frameFloatRef.current = endFrame
168-
playbackStartFrameRef.current = endFrame
169-
lastSetFrameRef.current = endFrame
170163
scheduleFrameCommit(endFrame)
171164
stopPlayback()
172165
}

0 commit comments

Comments
 (0)