react-spectrum
react-spectrum copied to clipboard
Pinch zooming causes modal overlay to flicker
Provide a general summary of the issue here
If you pinch zoom on a custom modal overlay with height set to var(--visual-viewport-height)
, the viewport height causes overlay to flicker.
๐ค Expected Behavior?
Ideally, the viewport height should be frozen when pinch zooming.
๐ฏ Current Behavior
Viewport height is calculated on pinch zoom.
๐ Possible Solution
No response
๐ฆ Context
https://github.com/user-attachments/assets/8808cd08-3aae-4765-ac42-c3d9acd40a98
๐ฅ๏ธ Steps to Reproduce
https://stackblitz.com/edit/vitejs-vite-d3twgf?file=src%2FApp.tsx
Version
^1.4.0
What browsers are you seeing the problem on?
Chrome Safari Firefox
If other, please specify.
No response
What operating system are you using?
macOS Sequoia 15
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response