From f560e6fd5c404bb1aa556826b0de44d2adebf5fe Mon Sep 17 00:00:00 2001 From: Oleg Korshul Date: Mon, 24 Dec 2018 18:09:11 +0300 Subject: [PATCH] Disable scrolling in mobile version --- apps/api/documents/api.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index ae5e1781a..786dd53ce 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -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; }