limit pointer events to ios

This commit is contained in:
Peng Lyu
2019-11-15 14:03:45 -08:00
parent 18f2fd24c4
commit d2e8f2babd
2 changed files with 1 additions and 2 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 (BrowserFeatures.pointerEvents && (<any>window).visualViewport) {
if (platform.isIOS && BrowserFeatures.pointerEvents && (<any>window).visualViewport) {
return new Dimension((<any>window).visualViewport.width, (<any>window).visualViewport.height);
}