faketouches.js
function triggerTouch(type) {
        var event = document.createEvent('Event');
        var touchlist = this._createTouchList(this.touches);

        event.initEvent('touch' + type, true, true);
        event.touches = touchlist;
        event.changedTouches = touchlist;

        return this.element.dispatchEvent(event);
    }
function triggerTouch(type) {
        var event = document.createEvent('Event');
        var touchlist = this._createTouchList(this.touches);

        event.initEvent('touch' + type, true, true);
        event.touches = touchlist;
        event.changedTouches = touchlist;

        return this.element.dispatchEvent(event);
    }
function triggerTouch ( type ) { var event = document . createEvent ( 'Event' ) ; var touchlist = this . _createTouchList ( this . touches ) ; event . initEvent ( 'touch' + type , true , true ) ; event . touches = touchlist ; event . changedTouches = touchlist ; return this . element . dispatchEvent ( event ) ; }
trigger touch event
@param type
@returns {Boolean}
trigger touch event