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

View File

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