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 for using the event related to of when the swipe dragging ends, you should setup the event as the following:

 

Code Block
languagejs
slider.api.addEventListener( MSSliderEvent.INIT, function(){
	slider.api.view.addEventListener(MSViewEvents.SWIPE_END, function(){
             // dispatches when swipe dragging ends.
		console.log('MS Swipe ended!');
    });
} );