-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Freeze overlay positioning when pinch zooming #5612
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
Conversation
Build successful! 🎉 |
The overarching question we need to answer (so we don't forget what it is after the break) is: I personally feel it's better to maintain, that way a user can actually zoom on an overlay. If it tries to re-size to fit, then it may unintentionally move the item of interest in an unexpected way for the user. |
linking #5205 |
+1 to rob's comment, i think the popover should maintain its position and not resize to fit |
Build successful! 🎉 |
33bcf3c
to
cb25686
Compare
Build successful! 🎉 |
Build successful! 🎉 |
// TODO: try getting rid of this reliance on useViewport size in favor of height: "100svh" and see if that makes the | ||
// modal. Maybe to do later | ||
let style: any = { | ||
// TODO: look up why we have this and if we can use svh instead so we don't run into a modal with combobox in it + pinch zoom breaking the combobox dropdown placement | ||
// not sure if that even happens though |
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.
The behavior of the modal is the same before and after this change (aka it adjusts itself to fit the visual viewport), will need to revisit to see if we want its size to remain static as the user pinch zooms. For now we'll keep the same behavior
Build successful! 🎉 |
1 similar comment
Build successful! 🎉 |
… safari pinch zooming + opening a overlay in safari breaks now
b5db74f
to
293d4f2
Compare
3a48a1f
to
b5db74f
Compare
b5db74f
to
3a48a1f
Compare
Build successful! 🎉 |
Build successful! 🎉 |
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.
LGTM
Build successful! 🎉 |
## API Changes
unknown top level export { type: 'any' } |
Closes #5757 #2700
✅ Pull Request Checklist:
📝 Test Instructions:
Go to the combobox storybook stories and open them outside the iframe in new window. Test pinch zoom when the dropdown is open
🧢 Your Project:
RSP