Skip to content

Commit c21fd7c

Browse files
Update src/components/Canvas.tsx
Co-authored-by: Deepak Khatri <[email protected]>
1 parent 6cb6b34 commit c21fd7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Canvas.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const Canvas = forwardRef(
136136
// Update data indices for referencing past buffers
137137
dataIndicesRef.current = Array.from(
138138
{ length: 5 },
139-
(_, i) => (activeBufferIndexRef.current - i - 1 + 6) % 6
139+
(_, i) => (activeBufferIndexRef.current - i + 5) % 6
140140
);
141141
};
142142

0 commit comments

Comments
 (0)