Tldraw/apps/dotcom/scripts
alex af664d55df
fix coarse pointer detection (#3795)
Previously, we were using touch and mouse events to detect when we were
in coarse/fine pointer mode. The problem with this is that many mobile
devices emulate mouse events for backwards compatibility with websites
not built for touch - so many touch events result in mouse events too.

The solution to this is to use the unified pointer events API, and check
the `pointerType` property to determine the device the user is using.

This diff also contains some changes to make it so that multiplayer
rooms "just work" over the LAN when devloping locally.

### Change Type
- [x] `sdk` — Changes the tldraw SDK
- [x] `bugfix` — Bug fix

### Release Notes

- Fix a bug where coarse-pointer mode would get incorrectly detected on
some touch devices
2024-05-21 16:20:27 +00:00
..
build.ts fix coarse pointer detection (#3795) 2024-05-21 16:20:27 +00:00
dev-app.ts unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00
vercel-output-config.d.ts unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00