kswedberg / jquery-carousel-lite

A jQuery carousel plugin based on jCarouselLite by Ganeshji Marwaha
MIT License
177 stars 59 forks source link

beforeStart event has no information about btnGo clicked #46

Closed roscopeeco closed 9 years ago

roscopeeco commented 9 years ago

Hello,

I am integrating lazy loading of content with the slider and was attempting to use the beforeStart event to send off a content load request before the animation starts. So the content wouldn't necessarily be loaded before the animation starts but the request would at least have been made.

The problem is that the event paramenters are just the currently visible items and the slider direction.

Can this event be modified to provided a further parameter which is either the btnGo that was clicked or an array of the items that will be visible after the animation finishes?

Thanks

Ross

kswedberg commented 9 years ago

@roscopeeco: If I provide a parameter for the clicked button, would you want the actual DOM element or the index of that button among all the buttons?

roscopeeco commented 9 years ago

Thanks for the reply...i think either would be great or both!!

cheers

Ross