do not prevent UI scrolling on mobile (#2007)

This commit is contained in:
David Luzar 2020-08-06 18:56:51 +02:00 committed by GitHub
parent 0eff9d525d
commit c06988a202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ document.addEventListener(
"touchmove", "touchmove",
(event) => { (event) => {
// @ts-ignore // @ts-ignore
if (event.scale !== 1) { if (typeof event.scale === "number" && event.scale !== 1) {
event.preventDefault(); event.preventDefault();
} }
}, },