Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: updated Scroll Based Velocity component to disable scroll prop for infinite text scrolling#896

Merged
Yeom-JinHo merged 1 commit intomagicuidesign:mainfrom
Aniket-a14:update-feat
Mar 1, 2026
Merged

feat: updated Scroll Based Velocity component to disable scroll prop for infinite text scrolling#896
Yeom-JinHo merged 1 commit intomagicuidesign:mainfrom
Aniket-a14:update-feat

Conversation

@Aniket-a14
Copy link
Contributor

Updated the scroll based velocity componenet

Copilot AI review requested due to automatic review settings March 1, 2026 08:35
@vercel
Copy link

vercel bot commented Mar 1, 2026

@Aniket-a14 is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

@Aniket-a14
Copy link
Contributor Author

@Yeom-JinHo hey! just like you mentioned I have updated the component to allow option to disable the scroll prop, can you review it once?

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a scrollReactivity boolean prop to the ScrollVelocityRow component, which when set to false disables scroll-based speed modulation so the text scrolls at a constant base velocity regardless of the page scroll speed. The PR also incidentally includes an unrelated fix to the Pointer component that adds setIsActive(true) inside handleMouseMove.

Changes:

  • Added scrollReactivity?: boolean prop to ScrollVelocityRowProps and ScrollVelocityRowImpl, defaulting to true (backwards compatible)
  • Updated useAnimationFrame logic to zero out velocityFactor when scrollReactivity=false
  • Updated documentation table and pre-built JSON/text artifacts to reflect the new prop

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
apps/www/registry/magicui/scroll-based-velocity.tsx Core implementation of scrollReactivity prop
apps/www/public/r/scroll-based-velocity.json Pre-built registry artifact updated to match source
apps/www/public/r/pointer.json Registry artifact updated with unrelated Pointer fix (setIsActive(true) in handleMouseMove)
apps/www/public/llms-full.txt LLM context file updated with both the scrollReactivity change and the unrelated Pointer fix
apps/www/content/docs/components/scroll-based-velocity.mdx Documentation table updated to include scrollReactivity prop

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

@Yeom-JinHo Yeom-JinHo self-requested a review March 1, 2026 08:47
Copy link
Collaborator

@Yeom-JinHo Yeom-JinHo left a comment

Choose a reason for hiding this comment

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

@Aniket-a14
Thank you for incorporating the feedback so quickly.

It looks like some unintended changes were automatically inserted by lefthook, so I’ve pushed a clean-up commit to main.

Once you rebase your branch, I’ll go ahead and merge it.

@Aniket-a14
Copy link
Contributor Author

@Yeom-JinHo I have rebased my branch, can you check it please?

@Yeom-JinHo
Copy link
Collaborator

Thnaks @Aniket-a14

@Yeom-JinHo Yeom-JinHo merged commit 6991ec2 into magicuidesign:main Mar 1, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants