jsdom-testing-mocks icon indicating copy to clipboard operation
jsdom-testing-mocks copied to clipboard

[Request] Support `window.visualViewport`

Open puglyfe opened this issue 3 months ago • 0 comments

VisualViewport is a window property primarily aimed at supporting pinch-zoom interactions. I came across it while debugging an issue with floating-ui. It seems like it would make sense to also mock this property when mocking the viewport. It also has a polyfill, which should make it fairly straightforward to implement.

puglyfe avatar Nov 26 '24 16:11 puglyfe