Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Please notice that for the events of the view object ( MSViewEvents ) you need to define the event in the MSSliderEvent.INIT first.

For example the using the event related to when the swipe dragging ends, you should setup the event as the following:

 

Code Block
languagejs
linenumberstrue
slider.api.addEventListener( MSSliderEvent.INIT, function(){
	slider.api.view.addEventListener(MSViewEvents.SWIPE_END, function(){
             // dispatches when swipe dragging ends.
    });
} );