Skip to content

Commit e4822ad

Browse files
committed
fix(webapp): scroll deployment logs to top instantly so follow mode stays paused
A smooth scroll eases in, so its first scroll event can still read as at-bottom and re-enable auto-scroll, which snaps the view back down.
1 parent 9078452 commit e4822ad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.deployments.$deploymentParam

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.deployments.$deploymentParam/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ function LogsDisplay({
576576
}
577577
if (container.scrollHeight - container.clientHeight <= AT_BOTTOM_TOLERANCE_PX) return;
578578
setIsAtBottom(false);
579-
container.scrollTo({ top: 0, behavior: "smooth" });
579+
container.scrollTop = 0;
580580
};
581581

582582
const onCopyLogs = useCallback(

0 commit comments

Comments
 (0)