Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

Scroll bug in onboarding (#2513)

Evan Hutnik6a60d071c252
diff --git a/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx b/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx
index ce67d9c13a..0c200921fe 100644
--- a/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx
+++ b/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx
@@ -127,7 +127,11 @@ export default function InteractiveOnboarding() {
const handleLessonComplete = (buttonLabel?: string) => {
setContinueLabel(buttonLabel);
setReadyToContinue(true);
- requestAnimationFrame(() => continueButtonRef?.focus());
+ // Skip auto-focus on touch — Safari scrolls to the focused element,
+ // which jumps the view to the bottom on longer lessons.
+ if (!isTouch) {
+ requestAnimationFrame(() => continueButtonRef?.focus());
+ }
};
const handleContinue = () => {