core/src/ons/gesture-detector.js
function startDetect(inst, eventData) {
    // already busy with a GestureDetector.gesture detection on an element
    if (this.current) {
      return;
    }

    this.stopped = false;

    // holds current session
    this.current = {
      inst: inst, // reference to GestureDetectorInstance we're working for
      startEvent: Utils.extend({}, eventData), // start eventData for distances, timing etc
      lastEvent: false, // last eventData
      lastCalcEvent: false, // last eventData for calculations.
      futureCalcEvent: false, // last eventData for calculations.
      lastCalcData: {}, // last lastCalcData
      name: '' // current gesture we're in/detected, can be 'tap', 'hold' etc
    };

    this.detect(eventData);
  }
function startDetect(inst, eventData) {
    // already busy with a GestureDetector.gesture detection on an element
    if (this.current) {
      return;
    }

    this.stopped = false;

    // holds current session
    this.current = {
      inst: inst, // reference to GestureDetectorInstance we're working for
      startEvent: Utils.extend({}, eventData), // start eventData for distances, timing etc
      lastEvent: false, // last eventData
      lastCalcEvent: false, // last eventData for calculations.
      futureCalcEvent: false, // last eventData for calculations.
      lastCalcData: {}, // last lastCalcData
      name: '' // current gesture we're in/detected, can be 'tap', 'hold' etc
    };

    this.detect(eventData);
  }
function startDetect ( inst , eventData ) { // already busy with a GestureDetector.gesture detection on an element if ( this . current ) { return ; } this . stopped = false ; // holds current session this . current = { inst : inst , // reference to GestureDetectorInstance we're working for startEvent : Utils . extend ( { } , eventData ) , // start eventData for distances, timing etc lastEvent : false , // last eventData lastCalcEvent : false , // last eventData for calculations. futureCalcEvent : false , // last eventData for calculations. lastCalcData : { } , // last lastCalcData name : '' // current gesture we're in/detected, can be 'tap', 'hold' etc } ; this . detect ( eventData ) ; }
start GestureDetector.gesture detection
@param {GestureDetector.Instance} inst
@param {Object} eventData
start GestureDetector . gesture detection