ag-charts-community
Version:
Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue
18 lines • 441 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
let touchDevice = undefined;
function isTouchDevice() {
if (touchDevice !== undefined) {
return touchDevice;
}
try {
document.createEvent('TouchEvent');
touchDevice = true;
}
catch (e) {
touchDevice = false;
}
return touchDevice;
}
exports.isTouchDevice = isTouchDevice;
//# sourceMappingURL=touch.js.map