Hi,
i have one question,
how can i avoid onswipex event asociated with a layout when that layout contains a slider…
there is a conflict between slider and that event. i dont want to raise onswipex event when the user changes slider value.
Thanks and regards!
maksim
2
Which version of Webix you are using. I believe, that in Webix 3.0, slider doesn’t raise any touch events.
The event is raised by the layout. Ínside that layout, there is a slider and that is the problem. The event is fired when i change the slider value.
Maria
6
You can set check for the context target in your event handler:
...
on:{
onSwipeX: function(startContext, endContext){
var trg = startContext.target;
if(trg.className.indexOf("webix_slider") == -1){
// your code
}
}
},
...