|
|
@ -22,7 +22,7 @@ |
|
|
|
var scrollableArea; |
|
|
|
var scrollableArea; |
|
|
|
|
|
|
|
|
|
|
|
var getSlider = function (target) { |
|
|
|
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 (; target && target !== document; target = target.parentNode) { |
|
|
|
for (i = sliders.length; i--;) { if (sliders[i] === target) return target; } |
|
|
|
for (i = sliders.length; i--;) { if (sliders[i] === target) return target; } |
|
|
|
} |
|
|
|
} |
|
|
|