From b1745d5cbc06e986b94bc9e98e6822ec05cde336 Mon Sep 17 00:00:00 2001 From: Daniel Hammerschmidt Date: Wed, 17 Sep 2025 03:44:56 +0200 Subject: [PATCH] Drop a note about isTouchDevice and useFallback --- core/util/cursor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/util/cursor.js b/core/util/cursor.js index 6d689e7d..67c54575 100644 --- a/core/util/cursor.js +++ b/core/util/cursor.js @@ -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 {