Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f94204dcd4 |
@@ -38,7 +38,7 @@ interface TabLogsProps {
|
|||||||
|
|
||||||
const SCROLL_PIN_THRESHOLD_PX = 8;
|
const SCROLL_PIN_THRESHOLD_PX = 8;
|
||||||
const TAIL_POLL_MS = 10_000;
|
const TAIL_POLL_MS = 10_000;
|
||||||
const SCROLLBAR_SIZE = 14;
|
const SCROLLBAR_SIZE = 16;
|
||||||
|
|
||||||
const isScrolledToBottom = (el: HTMLElement) =>
|
const isScrolledToBottom = (el: HTMLElement) =>
|
||||||
el.scrollHeight - el.scrollTop - el.clientHeight <= SCROLL_PIN_THRESHOLD_PX;
|
el.scrollHeight - el.scrollTop - el.clientHeight <= SCROLL_PIN_THRESHOLD_PX;
|
||||||
|
|||||||
Reference in new issue
Block a user