Hi,
i am trying to figure out how to get which direction was called with slider.ev.on(rsBeforeAnimStart) but i can't find the information in the documentation. For example if i click on the right arrow i want to get the information direction / transition: "right". So i can trigger something when the end of the slideshow is reached and one still clicks the right arrow to load the (not existing) next slide.
Thanks in advance.
Update:
I managed to extend the next and prev function for the result i want:
// Extend Prev
slider.prev = function( /* optional_arguments */ ) {
// First Slide
if ( slider.currSlideId+1 == 1 ) {
// First Slide - do something
console.log("Tried to go prev the first slide");
} else {
$.rsProto.prev.call(this /* , optional_arguments */ );
}
};
But i can't trigger the console.log when i drag the slideshow. It seems dragging ignores prev and next methods.
.
help.dimsemenov.com
No comments:
Post a Comment