transitionType on fade events executed 2 times

jan.janssen's Avatar

jan.janssen

21 Oct, 2012 01:02 PM

Hi Dimitry,

I'm not sure if this question is already raised, i couldn't find it in the discussions.

When i'm using transitionType : fade it looks like the next events are executed 2 times.

`sliderInstance.ev.on('rsBeforeAnimStart', function() {
    alert("rsBeforeAnimStart");
});

sliderInstance.ev.on('rsAfterSlideChange', function() {
  alert("rsAfterSlideChange");
});

sliderInstance.ev.on('rsBeforeMove', function(e, type, action) {
  alert("rsBeforeMove");
});`

I'm trying to use on of these functions to show some extra data for a slide (due to required design i'm not able to use the caption :) ).

Is there a way to prevent the double execution of these functions? The most interesting function for me is of course the rsBeforeMove, so i have also the type of event (next or previous)

kr,
jan

  1. Support Staff 1 Posted by Dmitry Semenov on 21 Oct, 2012 05:51 PM

    Dmitry Semenov's Avatar

    Hi,

    Hm, works fine for me (see attachment), Can you send me link to your test page?

    Dmitry

  2. 2 Posted by jan.janssen on 22 Oct, 2012 10:02 AM

    jan.janssen's Avatar

    Hi Dimitry,

    You're right, we found the cause of the issue, it's in our code :)

    We're calling the royalslider in a lightbox, but we also need to scroll the page to the top of the page. We build the slider in the callback function of $z('html,body').animate({scrollTop: 0....

    Of cours due to the "html,body" selector everything inside the callback is executed 2 times.

    We can close this topic :)

    Thanks for the testing, and keep up the good work !!!

    Kr,
    Jan

  3. jan.janssen closed this discussion on 22 Oct, 2012 10:09 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac