diff --git a/src/js/plugin/handler/touch.js b/src/js/plugin/handler/touch.js index c4368ab..7dc7deb 100644 --- a/src/js/plugin/handler/touch.js +++ b/src/js/plugin/handler/touch.js @@ -89,7 +89,7 @@ function bindTouchHandler(element, i, supportsTouch, supportsIePointer) { } function touchMove(e) { var target = e.target; - var className = target && target.getAttribute('class') || ''; + var className = target && target.getAttribute && target.getAttribute('class') || ''; if (!className.match(/ps-prevent-touchmove/)) { if (!inLocalTouch && i.settings.swipePropagation) {