@atlassian/aui
Version:
Atlassian User Interface Framework
25 lines (23 loc) • 703 B
JavaScript
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports);
global.hasTouch = mod.exports;
}
})(this, function (module, exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var DocumentTouch = window.DocumentTouch;
var hasTouch = 'ontouchstart' in window || DocumentTouch && document instanceof DocumentTouch;
exports.default = hasTouch;
module.exports = exports['default'];
});
//# sourceMappingURL=has-touch.js.map