patternfly-elements
patternfly-elements copied to clipboard
iOS 15 resizes the window on scroll, update resize listeners that only care about width to only care about width
Resize listeners can be expensive on mobile, and iOS 15 Safari seems to the resize listener a lot on scroll, causing issues in the new nav component and pfe-primary-detail, maybe others.
Impacted component(s)
- [x] pfe-primary-detail
- [ ] pfe-content-set
- [ ] pfe-navigation (current one in PFE)
Steps to reproduce
Have only been able to reproduce this with a physical device, at time of writing browserstack has not added iOS 15.
Go to a page with a component that has a resize listener, scroll down in Safari on iOS 15.
Primary detail and the new nav component in cpelements had a lot of unwanted behavior.