layout onswipex and slider

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!

Which version of Webix you are using. I believe, that in Webix 3.0, slider doesn’t raise any touch events.

I am using 3.0.1 version

Thanks and regards!

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.

Anything new about this?

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
	}
    } 
},
...

Thanks!