- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
23 lines
616 B
JavaScript
23 lines
616 B
JavaScript
'use strict';
|
|
|
|
var owner = require('./owner.cjs');
|
|
|
|
function isMouseEvent(event) {
|
|
const win = owner.getEventWindow(event);
|
|
if (typeof win.PointerEvent !== "undefined" && event instanceof win.PointerEvent) {
|
|
return !!(event.pointerType === "mouse");
|
|
}
|
|
return event instanceof win.MouseEvent;
|
|
}
|
|
function isTouchEvent(event) {
|
|
const hasTouches = !!event.touches;
|
|
return hasTouches;
|
|
}
|
|
function isMultiTouchEvent(event) {
|
|
return isTouchEvent(event) && event.touches.length > 1;
|
|
}
|
|
|
|
exports.isMouseEvent = isMouseEvent;
|
|
exports.isMultiTouchEvent = isMultiTouchEvent;
|
|
exports.isTouchEvent = isTouchEvent;
|