Add __FORCE_NO_TOUCH_DEVICE__ to not use fallback

This commit is contained in:
Daniel Hammerschmidt 2025-09-17 03:48:32 +02:00
parent b1745d5cbc
commit 5a9a81c075
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ import { supportsCursorURIs, isTouchDevice } from './browser.js';
// 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;
const __FORCE_NO_TOUCH_DEVICE__ = false;
const useFallback = !supportsCursorURIs || (!__FORCE_NO_TOUCH_DEVICE__ && isTouchDevice);
export default class Cursor {
constructor() {