API combine two sliders - performance issues

info's Avatar

info

05 Nov, 2017 08:32 PM

Hello,
I would like to combine two sliders. When I klick next in one slider the other slider should go to the next content too.
var slider1 = $("#royalSlider").data('royalSlider');
var slider2 = $("#contentslider2").data('royalSlider');
slider1.ev.on('rsAfterSlideChange',function() {
                slider2.goTo( slider1.currSlideId);
 });
this works fine - but it is slow. The second lider waits until the first slider is done. (That is what "AfterSlideChange" means). Do you have an idea how to combine the two sliders so that a click on next moves both sliders immediately to the next content?
Thank You
Dirk

  1. Support Staff 1 Posted by Dmitry Semenov on 05 Nov, 2017 09:02 PM

    Dmitry Semenov's Avatar

    Hello,

    You move use rsBeforeMove -
    http://help.dimsemenov.com/discussions/problems/7563-direction-inte...

    But the delay will still happen when swiping.

    Dmitry

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • index.html 2.7 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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