pointer events check is not necessary

This commit is contained in:
Peng Lyu
2019-11-15 14:05:25 -08:00
parent d2e8f2babd
commit 40d8fd76b8
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}