Skip to content

Commit

Permalink
Updates to allow clicks on overlaying elements
Browse files Browse the repository at this point in the history
Don't prevent click interactions on elements that are positioned on top
of the slides.
  • Loading branch information
ajdinstel committed Jun 25, 2015
1 parent 8c725d0 commit f00d471
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,7 @@
// if 'stopOnInteraction' == true, stop the autoplay loop on interaction w/ the gallery
if (typeof stopOnInteraction !== 'undefined' && stopOnInteraction == true){
$(peekABoo).find('.js-peekaboo-container').on('click touchstart', function(e){

e.stopPropagation();
e.preventDefault();


// watch for real human interaction, and stop the slider.
if (e.hasOwnProperty('originalEvent')){
clearInterval(autoplay);
Expand Down Expand Up @@ -534,8 +531,6 @@
peekABoo.dragEnd(e);
});
}

return false;

};
peekABoo.dragStartCircular = function(e){
Expand All @@ -561,8 +556,6 @@
peekABoo.dragEndCircular(e);
});
}

return false;

};

Expand Down Expand Up @@ -631,7 +624,6 @@
}
);

return false;
};

peekABoo.dragMoveCircular = function(e){
Expand Down Expand Up @@ -672,7 +664,6 @@
}
);

return false;
};

peekABoo.dragEnd = function(e){
Expand Down

0 comments on commit f00d471

Please sign in to comment.