We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7de68a2 commit 4263513Copy full SHA for 4263513
frontend/app/src/components/v1/cloud/logging/components/Terminal.tsx
@@ -74,7 +74,11 @@ function Terminal({
74
// The region is defined by both scroll direction AND position, so changing
75
// direction automatically resets the region state
76
const isInBottomRegion = isScrollingDown && scrollPercentage > 0.7;
77
- if (isInBottomRegion && !wasInBottomRegionRef.current && onScrollToBottom) {
+ if (
78
+ isInBottomRegion &&
79
+ !wasInBottomRegionRef.current &&
80
+ onScrollToBottom
81
+ ) {
82
onScrollToBottom();
83
}
84
wasInBottomRegionRef.current = isInBottomRegion;
0 commit comments