MCPcopy Create free account
hub / github.com/dailydotdev/apps / isTouchDevice

Function isTouchDevice

packages/shared/src/lib/tooltip.ts:1–7  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export const isTouchDevice = (): boolean => {
2 if (typeof window === 'undefined') {
3 return false;
4 }
5
6 return 'ontouchstart' in window || navigator.maxTouchPoints > 0;
7};

Callers 3

ToastFunction · 0.90
InAppNotificationElementFunction · 0.90
getShouldLoadTooltipFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected