nir9 / itemslide

JavaScript Touch Carousel Library with Zero Dependencies
https://itemslide.org
MIT License
647 stars 85 forks source link

Anchor (Click event) not firing #13

Closed terrylinooo closed 9 years ago

terrylinooo commented 9 years ago

HTML:

Javascript:

$(document).ready(function () {

$("#blogslide ul").itemslide({
    one_item: true //Set this for proper full screen navigation
}); //initialize itemslide

$(window).resize(function () {
    $("#blogslide ul").reload();

}); //Recalculate width and center positions and sizes when window is resized

$('#blogslide a').click(function(e){
        e.preventDefault();
        console.log("this is the click");
    });

});

Test Link 1 is working. Test Link 2 is not working and MouseOver, Click event is not fired

Jquery version: 1.11.2

nir9 commented 9 years ago

Can you please provide a JSFiddle example so it'll be easier to check

terrylinooo commented 9 years ago

Thank you. But I tested it on http://codepen.io/anon/pen/RPWaZK

It works! Not work on my Localhost server. it's strange.

nir9 commented 9 years ago

I'll test on my local server and see if it works

terrylinooo commented 9 years ago

Sorry! My mistake. A transparent layer is on the DIV, I didn't notice it.

Thank you very much for providing such great plugin!

nir9 commented 9 years ago

:+1: