I would like to to catch a tap event on a carousel in the control section of a controller. Like:
control: {
mycarouselView: {
initialize: 'initMycarousel',
tap: 'react-on-tap'
}
Initialize fires but not tap. That is, how I learnt in Stackoverflow forum, because the event goes to the element of a carousel, not the carousel itself. So I put following code into the initialize function of my carousel:
carousel.element.on( 'tap' , function(e, el) {
react-on-tap();
}, this);
This works fine, but then I define my events at two different locations. Is there a way to get it done in the control-definition?