Drop a note about isTouchDevice and useFallback

This commit is contained in:
Daniel Hammerschmidt 2025-09-17 03:44:56 +02:00
parent 59e40b4435
commit b1745d5cbc
1 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,10 @@
import { supportsCursorURIs, isTouchDevice } from './browser.js';
// Sometimes (at least with Chrome and Firefox on Windows)
// isTouchDevice is true even if there is no touch device, in
// this case useFallback ist also true and cursor URIs are never
// used.
const useFallback = !supportsCursorURIs || isTouchDevice;
export default class Cursor {