Drop a note about isTouchDevice and useFallback
This commit is contained in:
parent
59e40b4435
commit
b1745d5cbc
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue