Disable scrolling in mobile version

This commit is contained in:
Oleg Korshul 2018-12-24 18:09:11 +03:00
parent 8f912625a2
commit f560e6fd5c

View file

@ -716,6 +716,12 @@
iframe.allowFullscreen = true;
iframe.setAttribute("allowfullscreen",""); // for IE11
iframe.setAttribute("onmousewheel",""); // for Safari on Mac
if (config.type == "mobile")
{
iframe.style.position = "fixed";
iframe.style.overflow = "hidden";
}
return iframe;
}