Direction of ihe Swiping

ali.adlah's Avatar


25 Jan, 2019 01:31 PM

how can i know which direction on rsDragRelease

  1. Support Staff 1 Posted by Dmitry Semenov on 25 Jan, 2019 05:19 PM

    Dmitry Semenov's Avatar


    There is rsBeforeMove event for that:

    slider.ev.on('rsBeforeMove', function(event, type, userAction ) {
        // before any transition start (including after drag release)
        // "type" - can be "next", "prev", or ID of slide to move
        // userAction (Boolean) - defines if action is triggered by user (will be false if movement is triggered by autoPlay)

Reply to this discussion

Internal reply

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

Attaching KB article:


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


? 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