Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat authored Jan 17, 2025
1 parent b58c55b commit 06ccf7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Composer/implementation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ function Composer(
return;
}

// Only prevent scrolling when composer is scrollable
// When the composer has no scrollable content, the stopPropagation will prevent the inverted wheel event handler on the Chat body
// which defaults to the browser wheel behavior. This causes the chat body to scroll in the opposite direction creating jerky behavior.
if (textInput.current && textInput.current.scrollHeight <= textInput.current.clientHeight) {
return;
}
Expand Down

0 comments on commit 06ccf7c

Please sign in to comment.