Skip to content

Commit 4b58055

Browse files
committed
fix(web): cancel delayed reveals on downward scroll
1 parent ffeb6c9 commit 4b58055

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/web/src/components/chat/useTimelineFollow.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ export function useTimelineFollow(input: TimelineFollowInput) {
318318
if (event.ctrlKey || !isTimelineScrollTarget(event.target, scrollNode, event.deltaY))
319319
return;
320320
if (event.deltaY > 0) {
321+
cancelPositionRestoreRef.current?.();
321322
timelineScrollIntentRef.current = "toward-end";
322323
if (isAtEndRef.current) {
323324
composer.current?.restoreAfterTimelineReachedEnd();

0 commit comments

Comments
 (0)