UNPKG

@terminus/ngx-tools

Version:

[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github

15 lines (14 loc) 518 B
/** * Shorthand to dispatch a touch event on the specified coordinates. * * @param node - The Node that should dispatch the touch event * @param type - The event type * @param x - The location on the X axis * @param y - The location on the Y axis * @returns The touch event * * @example * dispatchTouchEvent(myNativeElement, 'touchstart'); * dispatchTouchEvent(myNativeElement, 'touchstart', 10, 10); */ export declare const dispatchTouchEvent: (node: Node, type: string, x?: number, y?: number) => Event;