pmndrs / pmndrs/react-spring

[bug]: Scrolling UI issue

Open
#2,135 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: docs kind: bug type: good first issue
Dominant language
TypeScript
Stars
29.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Which react-spring target are you using?
  • @react-spring/web
  • @react-spring/three
  • @react-spring/native
  • @react-spring/konva
  • @react-spring/zdog
What version of react-spring are you using?

https://react-spring.dev/docs

What's Wrong?

Main scrolling issue

When we scroll over this component first the main page scrolls then this component starts scrolling.
image

Bug Preview

When we scroll back to the top then the page behaves occurred.
https://user-images.githubusercontent.com/87828904/229473880-7bb6854a-a1d3-4a62-bfef-12e7f92f5e46.mp4

To Reproduce

https://react-spring.dev/docs

Expected Behaviour

When we scroll over this component just this component needs to scroll not the main page.
image

Link to repo

https://react-spring.dev/docs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the scrolling behavior at https://react-spring.dev/docs and review the issue's screenshots and video alongside it. Identify the affected component and confirm that scrolling over it moves only that component, including when scrolling back to the top.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.