jquery - Select cells on table by dragging on tablets -


there questions it, , solution seems simple... how make work on tablets?

$(function () {   var ismousedown = false,     ishighlighted;   $("#our_table td")     .mousedown(function () {       ismousedown = true;       $(this).toggleclass("highlighted");       ishighlighted = $(this).hasclass("highlighted");       return false; // prevent text selection     })     .mouseover(function () {       if (ismousedown) {         $(this).toggleclass("highlighted", ishighlighted);       }     })     .bind("selectstart", function () {       return false;     })    $(document)     .mouseup(function () {       ismousedown = false;     }); }); 

http://jsfiddle.net/brv6j/3/

i tried bind touchstart , touchend simultanously, problem seems mouseover event.

this plugin worked when using jquery draggable, doesn't seems fix problem in here.


Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -