diff --git a/src/components/scrollManager.js b/src/components/scrollManager.js index 7697132d66..9f637baa6f 100644 --- a/src/components/scrollManager.js +++ b/src/components/scrollManager.js @@ -163,7 +163,7 @@ define(["dom", "browser", "layoutManager"], function (dom, browser, layoutManage while (parent) { if ((!vertical && parent.scrollWidth > parent.clientWidth && parent.classList.contains("scrollX")) || - (vertical && parent.scrollHeight > parent.clientHeight) && parent.classList.contains("scrollY")) { + (vertical && parent.scrollHeight > parent.clientHeight && parent.classList.contains("scrollY"))) { return parent; }