kopia lustrzana https://github.com/Tldraw/Tldraw
rm backticks
rodzic
6f034baaa5
commit
9afae9e3a7
|
@ -20,8 +20,7 @@ export function useCoarsePointer() {
|
|||
const mql = window.matchMedia('(any-pointer: coarse)')
|
||||
|
||||
const handler = (coarse?: boolean) => {
|
||||
editor.updateInstanceState({ isCoarsePointer: coarse ?? !!mql.matches })```
|
||||
|
||||
editor.updateInstanceState({ isCoarsePointer: coarse ?? !!mql.matches })
|
||||
}
|
||||
|
||||
const touchStartHandler = () => handler(true)
|
||||
|
|
Ładowanie…
Reference in New Issue