diff --git a/lib/js/sliders.js b/lib/js/sliders.js index b659e83..cdbba7d 100644 --- a/lib/js/sliders.js +++ b/lib/js/sliders.js @@ -22,7 +22,7 @@ var scrollableArea; var getSlider = function (target) { - var i, sliders = document.querySelectorAll('.slider ul'); + var i, sliders = document.querySelectorAll('.slider > ul'); for (; target && target !== document; target = target.parentNode) { for (i = sliders.length; i--;) { if (sliders[i] === target) return target; } }