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

Fix iOS scrolling mobile menu overlay attempt and improve events #656

Merged
merged 2 commits into from
Jun 8, 2022

Conversation

fairlighteth
Copy link
Contributor

Summary

  • Attempt to improve iOS janky scrolling in the mobile menu overlay
  • Fix race condition with adding noScroll class to Body. It got added then removed right away when the mobile menu overlay was open. While it should stay added. Fixed now.
  • Optimize media query detection by adding isLargeAndUp
  • Detect if a device has touch capabilities with isTouch and use that to have the app pick onClick vs onTouchStart event.

@fairlighteth fairlighteth requested review from a team June 8, 2022 07:35
@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2022

CLA Assistant Lite All Contributors have signed the CLA.

@fairlighteth
Copy link
Contributor Author

@elena-zh could you test how the scrolling of the mobile menu overlay is for you now?

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2022

  • 🔭 GP Swap: CoW Protocol v2 Swap UI

@elena-zh
Copy link

elena-zh commented Jun 8, 2022

Hey @fairlighteth , great changes!
Moreover, now I'm able to open the menu in reduced screens in browsers in Win10.

Just a tiny issue I noticed that now the app logo and the cross icon overlap the menu when scroll it:
image

Could you please fix it?
Thanks!

@fairlighteth
Copy link
Contributor Author

@elena-zh Thanks for reviewing! Can you re-check the last issue you had? It should be fixed now.

Copy link

@elena-zh elena-zh left a comment

Choose a reason for hiding this comment

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

LGTM now!

@fairlighteth fairlighteth merged commit 83d1a00 into improve-header-1 Jun 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jun 8, 2022
@alfetopito alfetopito deleted the improve-header-1-fixios branch June 8, 2022 13:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants