mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
pointer events check is not necessary
This commit is contained in:
@@ -501,7 +501,7 @@ export function getClientArea(element: HTMLElement): Dimension {
|
||||
}
|
||||
|
||||
// If visual view port exits and it's on mobile, it should be used instead of window innerWidth / innerHeight, or document.body.clientWidth / document.body.clientHeight
|
||||
if (platform.isIOS && BrowserFeatures.pointerEvents && (<any>window).visualViewport) {
|
||||
if (platform.isIOS && (<any>window).visualViewport) {
|
||||
return new Dimension((<any>window).visualViewport.width, (<any>window).visualViewport.height);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user