Package Exports
- get-client-xy
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-client-xy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Get clientX/clientY
$ npm install get-client-xy
var getClientX = require('get-client-xy').x;
var getClientY = require('get-client-xy').y;
on(document, 'touch mousedown', function (e) {
var clientX = getClientX(e);
...
});
Pass optionally index as a second argument to getClient to retrieve touch by that index.