Skip to content

onTouchStart

fires when the view has been touched

function onTouchStart(
// object with event parameters
context: object
): void
grid.attachEvent("onTouchStart",function(context){
//your code here
});

Parameters of the context object are the following:

  • x - {number} horizontal event position
  • y - {number} vertical event position
  • target - {object} the HTML element where the event started
  • time - {Date} the time of event start