Skip to content

Adjust background scale to prevent foreground from scaling out #109

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

Merged
merged 1 commit into from
Jun 19, 2018

Conversation

Li357
Copy link
Contributor

@Li357 Li357 commented Jun 18, 2018

There's an issue where ParallaxScrollView doesn't scale the background enough on scroll to cover the new height, leading to lower layers of an app's UI to show up (such as a gray background) and the foreground to seemingly go outside the bounds of the background. This looks really bad, but adjusting the scaling by a factor of >= 1.4 seemed to work, though there might need to be a more dynamic value for different images.

Here's an example of the bug.

fungilation added a commit to fungilation/react-native-parallax-scroll-view that referenced this pull request Jun 19, 2018
…und) and the foreground to seemingly go outside the bounds of the background" when bouncy dragging down beyond top, by merging i6mi6#109
@i6mi6 i6mi6 merged commit 34f52b4 into i6mi6:master Jun 19, 2018
@fungilation
Copy link
Collaborator

Great patch! Merged and tested in my branch and app WonderSwipe. Fixes the exact issue as described as I've been seeing as well, leaving a background (gray) gap on bouncy dragging beyond top on iOS.

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