catch double click on iPad

catch double click on iPad

dedesidedesi Posts: 2Questions: 2Answers: 0

I used datatable with catching double click event on rows. I used single click to select a cell and then click shift key to activate cell edit. Both functionalities work fine on desktop but on ipad/iphone and I think on mobil neither of them work. Clicking on cell works but the cell activating with a thick border but user cannot click on shift, because no keyboard. Double click doesn't work, nothing happen. Does anybody idea how to do on mobile these functions?

Answers

  • allanallan Posts: 63,683Questions: 1Answers: 10,498 Site admin

    Using both click and double click on the same element is really difficult - from Quirks Mode:

    Don't register click and dblclick events on the same element: it's impossible to distinguish single-click events from click events that lead to a dblclick event.

    Perhaps you could have the click event detect if the cell is already selected or not? If it is, then activate the editing, otherwise select it. The effect would be the same as double click to edit.

    Allan

This discussion has been closed.