Detect If Browser/device Supports Double Click Events
I have a table containing multiple rows. Each row is selectable by clicking once on the row. Double clicking the row opens up the datasheet the row represents in the same window.
Solution 1:
Maybe try to use a timeout to check if there is an another click after the first click
$(Elm).click(function(evnt){
clicks++;
if (clicks == 1) {
setTimeout(function(){
if(clicks == 1)
// Single click event bind, open
else
// Double click event bind, open
},2000);
});
Post a Comment for "Detect If Browser/device Supports Double Click Events"