malsup / cycle2

2nd gen cycling
899 stars 237 forks source link

currSlide Click Event #232

Open mvoltolini opened 11 years ago

mvoltolini commented 11 years ago

how can I get the current slide with click event?

malsup commented 11 years ago

What click event?

On Tue, Jul 2, 2013 at 8:40 AM, mvoltolini notifications@github.com wrote:

how can I get the current slide with click event?

— Reply to this email directly or view it on GitHubhttps://github.com/malsup/cycle2/issues/232 .

mvoltolini commented 11 years ago

I wish to extend the current slide by click inside it

malsup commented 11 years ago

Not exactly sure what you mean, but what about plain old delegation:

$('.cycle-slideshow').on('click', 'img', function(e) {
    var slide = this;
    ...
});