We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f2db6c commit c09225dCopy full SHA for c09225d
1 file changed
src/ui/transport.tsx
@@ -155,18 +155,11 @@ export const TransportControls = () => {
155
const endFrame = durationFrames - 1
156
if (nextFloat > endFrame) {
157
if (loop) {
158
- frameRef.current = 0
159
- frameFloatRef.current = 0
160
playbackStartFrameRef.current = 0
161
playbackStartTimeRef.current = timestamp
162
- lastSetFrameRef.current = 0
163
scheduleFrameCommit(0)
164
rafRef.current = requestAnimationFrame(tick)
165
} else {
166
- frameRef.current = endFrame
167
- frameFloatRef.current = endFrame
168
- playbackStartFrameRef.current = endFrame
169
- lastSetFrameRef.current = endFrame
170
scheduleFrameCommit(endFrame)
171
stopPlayback()
172
}
0 commit comments