react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Pinch zooming causes modal overlay to flicker

Open axelthat opened this issue 4 months ago โ€ข 0 comments

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

axelthat avatar Oct 03 '24 05:10 axelthat