pjamourik
Posts: 0
Joined: Mon May 26, 2014 12:22 pm

Prevent cell click when swiping

Hi Guys,

Can someone tell me how to do this, i can't find a solution.

I got 2 events :

  1. Cell click load details page

  2. Page swipe go to another page

    Everytime I do a page swipe, also the cell click event is launched...is there a solution to this?

    Any help would be appreciated!

    grts,

    Peter

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Prevent cell click when swiping

Hello!

Try using Tap event instead Click.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Prevent cell click when swiping

Hi Peter.

The case that's you have described is normal browser behavior.

But if you want to disable this "click" event please add to your "Swap" JS event handler following code:

precode

var target = jQuery(arguments[0].target);

var mouseup = function(event){
event.stopPropagation();

Code: Select all

 target.unbind("mouseup", mouseup); 

};
target.bind("click", mouseup);

/code/pre

Regards.

pjamourik
Posts: 0
Joined: Mon May 26, 2014 12:22 pm

Prevent cell click when swiping

Hi Guys,

Thanks for the help, I will try the suggestions today and let you know.

Regards,

Peter

pjamourik
Posts: 0
Joined: Mon May 26, 2014 12:22 pm

Prevent cell click when swiping

Hi Maryna,

Is it correct that there is no "Tap" event on a grid cell?

Grts,

Peter

Return to “Issues”