Skip to content

onLongTouch

fires on holding finger in some position for a certain period of time

function onLongTouch(
// object with event parameters
context: object
): void
grid.attachEvent("onLongTouch", e => console.log(e.target));

Parameters of the context object are the following:

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