Skip to content

Commit 9fb456e

Browse files
mountinyOSBotify
authored andcommitted
Merge pull request #88143 from Expensify/claude-fixHoverAfterSendMessage
[CP Staging] Fix hover highlight not working after sending a message (cherry picked from commit f14c55a) (cherry-picked to staging by roryabraham)
1 parent 1b1de3b commit 9fb456e

File tree

1 file changed

+8
-10
lines changed
  • src/hooks/useEmitComposerScrollEvents

1 file changed

+8
-10
lines changed

src/hooks/useEmitComposerScrollEvents/index.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,14 @@ function useEmitComposerScrollEvents(options?: UseEmitComposerScrollEventsOption
7878
clearTimeout(scrollEndTimeout.current);
7979
}
8080

81-
if (lastScrollEvent.current) {
82-
scrollEndTimeout.current = setTimeout(() => {
83-
if (lastScrollEvent.current !== timestamp) {
84-
return;
85-
}
86-
// Scroll has ended
87-
lastScrollEvent.current = null;
88-
onScrollEnd();
89-
}, 250);
90-
}
81+
scrollEndTimeout.current = setTimeout(() => {
82+
if (lastScrollEvent.current !== timestamp) {
83+
return;
84+
}
85+
// Scroll has ended
86+
lastScrollEvent.current = null;
87+
onScrollEnd();
88+
}, 250);
9189

9290
lastScrollEvent.current = timestamp;
9391
};

0 commit comments

Comments
 (0)