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

WRN-6761: VirtualGridListNative keeps scrolling after rotated while scrolling in Android #2987

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

alexandrumorariu
Copy link
Contributor

@alexandrumorariu alexandrumorariu commented Dec 16, 2021

Checklist

  • I have read and understand the contribution guide
  • A CHANGELOG entry is included
  • At least one test case is included for this feature or bug fix
  • Documentation was added or is not needed
  • This is an API breaking change

Issue Resolved / Feature Added

Changed the structure of the handleResizeWinodw from both Scrollable Native and useScroll so that the problem is less visible.
This problem was reproduced on all the components that used Scrollable Native and useScroll across all the libraries. This solution does not cover the Safari browser for IOS because of a strange interaction between overflow hidden and it (the items remain invisible until the user manually scrolls a bit).

Resolution

Additional Considerations

The solution is not a perfect fix as in some rare cases the list is not 100% at the top(the worst I've seen it was a little bit past it but the first element was still visible) but it should stop the scrolling effect from after the screen was rotated.

Links

WRN-6761

Comments

@codecov
Copy link

codecov bot commented Dec 16, 2021

Codecov Report

Merging #2987 (dfb440e) into develop (5904f1d) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

❗ Current head dfb440e differs from pull request most recent head 5ca090e. Consider uploading reports for the commit 5ca090e to get more accurate results
Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2987      +/-   ##
===========================================
- Coverage    47.44%   47.39%   -0.06%     
===========================================
  Files          171      171              
  Lines         9475     9485      +10     
  Branches      2364     2368       +4     
===========================================
  Hits          4495     4495              
- Misses        3866     3872       +6     
- Partials      1114     1118       +4     
Impacted Files Coverage Δ
packages/ui/Scrollable/ScrollableNative.js 0.00% <0.00%> (ø)
packages/ui/useScroll/useScroll.js 39.54% <0.00%> (-0.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5904f1d...5ca090e. Read the comment docs.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@daniel-stoian-lgp daniel-stoian-lgp left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@adrian-cocoara-lgp adrian-cocoara-lgp left a comment

Choose a reason for hiding this comment

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

LGTM

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