Skip to content

Commit bbde4bc

Browse files
authored
fix: Fix the off-by-one error in the session player event list (#768)
1 parent 7693ff5 commit bbde4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/SessionEventList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export const SessionEventList = ({
225225

226226
// Sync scroll position to the DOM Player time
227227
const currentEventIndex = useThrottledValue(
228-
rows.findIndex(row => row.timestamp.getTime() >= (focus?.ts ?? 0)) - 1,
228+
rows.findIndex(row => row.timestamp.getTime() >= (focus?.ts ?? 0)),
229229
500,
230230
);
231231

0 commit comments

Comments
 (0)