Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Regression] VirtualizedList jumpy header #20956

Closed
3 tasks done
danilobuerger opened this issue Sep 3, 2018 · 14 comments
Closed
3 tasks done

[Regression] VirtualizedList jumpy header #20956

danilobuerger opened this issue Sep 3, 2018 · 14 comments
Labels
Bug Component: VirtualizedList Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Resolution: Locked This issue was locked by the bot.

Comments

@danilobuerger
Copy link
Contributor

Environment

  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
      Memory: 64.78 MB / 16.00 GB
      Shell: 5.5.1 - /usr/local/bin/zsh
    Binaries:
      Node: 10.9.0 - /usr/local/bin/node
      Yarn: 1.9.4 - /usr/local/bin/yarn
      npm: 6.2.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
      Android SDK:
        Build Tools: 23.0.1, 25.0.1, 25.0.2, 25.0.3, 26.0.2, 26.0.3, 27.0.3
        API Levels: 23, 25, 26, 27
    IDEs:
      Android Studio: 3.1 AI-173.4907809
      Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.4.1 => 16.4.1 
      react-native: 0.57.0-rc.3 => 0.57.0-rc.3 
    npmGlobalPackages:
      create-react-native-app: 1.0.0
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Description

The PR #18105, Issue #18104 by @rbrosboel now causes jumpy headers while scrolling. See Demo

Reproducible Demo

Since expo doesn't provide 0.57.0-rc, see the following repo created with react-native-cli: https://github.com/danilobuerger/react-native-bug-virtualized-list

Scroll header 6 towards header 7, notice the jumping

qwe

@react-native-bot react-native-bot added 🔶Lists Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. labels Sep 3, 2018
@hramos hramos added the Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. label Sep 28, 2018
@Freddy03h
Copy link
Contributor

Anyone find a workaround ? This issue is still valid on 0.57.3.

@danilobuerger
Copy link
Contributor Author

@Freddy03h reverting the linked PR fixes it.

@shashankkrjain
Copy link

We can add a condition at the line:

let leadSpace = stickyBlock.offset - (initBlock.offset + initBlock.length);

if (this.props.initialScrollIndex) {
   leadSpace = stickyBlock.offset - initBlock.offset;
}

@danilobuerger
Copy link
Contributor Author

@shashankkrjain Thanks for the inspiration, I created a PR here: #22025

@wontonst
Copy link

Do we have an update on this issue? This is causing production issues for our mobile app.

@danilobuerger
Copy link
Contributor Author

@wontonst as you know there is a PR fixing this issue.

@wontonst
Copy link

wontonst commented Dec 18, 2018

yep but we haven't seen any pushes to get the PR reviewed and merged in so I believe the community would like an update on whether or not the fix would get merged in, and when a fix would be released. this seems like a pretty important bug to fix, especially given no easy workaround.

@danilobuerger
Copy link
Contributor Author

so ask in the PR, not the issue.

@wontonst
Copy link

wontonst commented Dec 18, 2018 via email

erwamartin pushed a commit to erwamartin/react-native that referenced this issue Feb 5, 2019
Summary:
Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468
Keeps the intended outcome of facebook#18105
Pull Request resolved: facebook#22025

Differential Revision: D13941915

Pulled By: cpojer

fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
erwamartin pushed a commit to erwamartin/react-native that referenced this issue Feb 7, 2019
Summary:
Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468
Keeps the intended outcome of facebook#18105
Pull Request resolved: facebook#22025

Differential Revision: D13941915

Pulled By: cpojer

fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
matt-oakes pushed a commit to matt-oakes/react-native that referenced this issue Feb 7, 2019
Summary:
Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468
Keeps the intended outcome of facebook#18105
Pull Request resolved: facebook#22025

Differential Revision: D13941915

Pulled By: cpojer

fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
Shrekie added a commit to Shrekie/react-native that referenced this issue Feb 11, 2019
erwamartin pushed a commit to erwamartin/react-native that referenced this issue Feb 21, 2019
Summary:
Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468
Keeps the intended outcome of facebook#18105
Pull Request resolved: facebook#22025

Differential Revision: D13941915

Pulled By: cpojer

fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
sjchmiela pushed a commit to expo/react-native that referenced this issue Mar 22, 2019
Summary:
Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468
Keeps the intended outcome of facebook#18105
Pull Request resolved: facebook#22025

Differential Revision: D13941915

Pulled By: cpojer

fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
bruchim pushed a commit to wix-playground/react-native that referenced this issue Mar 24, 2019
Summary:
Fixes facebook#20956, facebook#21361, facebook#21198, facebook#21468
Keeps the intended outcome of facebook#18105
Pull Request resolved: facebook#22025

Differential Revision: D13941915

Pulled By: cpojer

fbshipit-source-id: 59a0a834ea2d0dd4678e80a82ddaf95cecf87d38
@fcaride
Copy link

fcaride commented Apr 5, 2019

Any update on this?

@danilobuerger
Copy link
Contributor Author

@fcaride What update are you expecting? The issue has been resolved, that is why its closed.

@fcaride
Copy link

fcaride commented Apr 5, 2019

Lol sorry i didnt read all the thread, do you know which version of react-native has included this PR?

@danilobuerger
Copy link
Contributor Author

@fcaride You can easily look that up yourself. Click on the referenced commit and github will show you which tags include this commit.

@fcaride
Copy link

fcaride commented Apr 5, 2019

Sorry i cant see where, i can only find the "Merged" label

@facebook facebook locked as resolved and limited conversation to collaborators Feb 4, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: VirtualizedList Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Issue: Author Provided Repro This issue can be reproduced in Snack or an attached project. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

7 participants