Click on rsSlide, but not children

outmind's Avatar


27 Feb, 2020 03:23 PM

Hi! I'm tryin' detect rsSlide children click on.
I'm using slider.ev.on('rsSlideClick', function() {... }) and it works fine for whole slide.
But I need to execute some function with click on <div class="rsSlide"> but not it's children.
Is it possible? :)

  1. 1 Posted by outmind on 27 Feb, 2020 03:30 PM

    outmind's Avatar

    For example

  2. Support Staff 2 Posted by Dmitry Semenov on 29 Feb, 2020 05:19 AM

    Dmitry Semenov's Avatar


    rsSlideClick event has a second argument, which is an original event that caused click, touch or pointer event. You may use it like this:

    slider.ev.on('rsSlideClick', function(e, originalEvent) {
      console.log( );

    ... and check whether target has a class that you need.

  3. 3 Posted by outmind on 29 Feb, 2020 12:11 PM

    outmind's Avatar

    Thank you, Dmitry!

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