Disable scrollManager on emby-scroller

This commit is contained in:
Dmitry Lyzo 2020-02-16 22:08:08 +03:00
parent 07268df35a
commit 6ad85b3c45

View File

@ -171,7 +171,9 @@ define(["dom", "browser", "layoutManager"], function (dom, browser, layoutManage
var parent = element.parentElement;
while (parent) {
if (parent[nameScroll] > parent[nameClient] && parent.classList.contains(nameClass)) {
// Skip 'emby-scroller' because it scrolls by itself
if (!parent.classList.contains("emby-scroller") &&
parent[nameScroll] > parent[nameClient] && parent.classList.contains(nameClass)) {
return parent;
}