Skip to content

fix: disable page scrolling during tutorial flow#1482

Open
yashr5120 wants to merge 1 commit into
magic-peach:mainfrom
yashr5120:fix-disable-scroll-tutorial
Open

fix: disable page scrolling during tutorial flow#1482
yashr5120 wants to merge 1 commit into
magic-peach:mainfrom
yashr5120:fix-disable-scroll-tutorial

Conversation

@yashr5120

@yashr5120 yashr5120 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces an improvement to the onboarding tour user experience by preventing background scrolling when the tour is active.

User experience enhancement:

  • Added a useEffect hook to the OnboardingTour component to lock the body scroll (by setting document.body.style.overflow to "hidden") while the tour is visible, and restore the original overflow style when the tour is dismissed.## Description

Related Issue

Closes #1481

Type of Contribution

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • GSSoC contribution

Participant Info

  • GitHub username: yashr5120

Copilot AI review requested due to automatic review settings June 1, 2026 11:36
@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

@yashr5120 is attempting to deploy a commit to the magic-peach1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

✅ PR Format Check Passed — @yashr5120

Basic format checks passed. A maintainer will review your code changes.

This does not mean the PR is approved — it just means the format is correct.

@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

👋 Thanks for your PR, @yashr5120!

Welcome to Reframe — a browser-based video editor built for everyone 🎬

🟠 GSSoC'26 PR detected — thanks for contributing under GirlScript Summer of Code 2026!

What happens next

  1. 🤖 Automated checks — build & TypeScript typecheck will run automatically
  2. Vercel preview — a preview deployment will be created (requires maintainer authorization for fork PRs)
  3. 👀 Code review — a maintainer will review your changes
  4. 🚀 Merge — once approved, your PR will be merged!

Quick checklist

  • PR title follows Conventional Commits (e.g. feat: add dark mode)
  • Linked the issue this PR closes (e.g. Closes #123)
  • Tested the changes locally (bun run dev)
  • Build passes (bun run build)

Useful links

Happy coding! 🎉

@github-actions github-actions Bot added gssoc'26 GirlScript Summer of Code 2026 level:beginner Beginner level - 20 pts type:bug Bug fix type:design UI/UX design type:docs Documentation type:feature New feature type:refactor Code refactor labels Jun 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds body scroll locking while the onboarding tour is visible to prevent background scrolling during the tour overlay.

Changes:

  • Introduced a useEffect that sets document.body.style.overflow = "hidden" when the tour is visible.
  • Restores the previous inline overflow style on cleanup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +366 to +373
useEffect(() => {
if (!visible) return;
const originalOverflow = document.body.style.overflow;
document.body.style.overflow = "hidden";
return () => {
document.body.style.overflow = originalOverflow;
};
}, [visible]);
@yashr5120

Copy link
Copy Markdown
Contributor Author

@magic-peach kindly review and merge the pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc'26 GirlScript Summer of Code 2026 level:beginner Beginner level - 20 pts type:bug Bug fix type:design UI/UX design type:docs Documentation type:feature New feature type:refactor Code refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Page scrolling remains enabled during tutorial flow

2 participants