-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Scrollable]adjust scroll to bottom for lower resolution issues #4218
Conversation
142c757
to
6624508
Compare
size-limit report
|
6624508
to
0b2b969
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I follow what's happening here. Can we somehow 馃帺 this fix on a low res device in browser stack?
oh browser stack!! ill give that a shot |
I just requested access to our shopify browserstack account. so will wait and see. |
finally reproduced it in browserstack! Res of 1280x800 and with a 125% zoom set in browser as well! |
0b2b969
to
e1f4a85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for 馃帺 ing!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome that you could reproduce finally. 馃檱 馃帀
e1f4a85
to
eaca14b
Compare
Adding on to @rox163 's comment. I can replicate as well by setting the browsers zoom to anything other than 100%. Replicated using a range between 90% - 125% of browsers zoom in chrome on my macbooks native resolution. Also confirmed it happens in Safari on any zoom level, but not firefox. Tested on my own store. |
WHY are these changes introduced?
When launching our draft orders feature, a merchant reported an issue with the scrolalble area on th e product resource picker. The 'fetch more' action didnt seem to trigger when they scrolled to the bottom of a paginated list. The support specialist in touch with the merchant seemed to have narrowed it down to be reproducible only on lower resolution screens.
See original issue here
Broken scroll (it shouldve loaded 4-5 more more products after Sleek Granite shoes)
WHAT is this pull request doing?
After some pairing and irl chats with @dleroux we decided to add a small buffer to the height detection for the scrolledToBottom action on a Scrollable component. Unfortunately none of our dev machines are able to go down to a lower resolution so i cant reproduce the original problem locally.
Gif of playground testing with a scrollable modal
Browserstack test on Windows Edge (scroll in general was pretty slow and jumpy in Edge through browserstack fyi):
Gif of browserstack with low res and zoom WITH the fix
How to 馃帺
馃枼 Local development instructions
馃棐 General tophatting guidelines
馃搫 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx
:馃帺 checklist
README.md
with documentation changes