stickies: hide clone handles on mobile (#3478)
### Change Type <!-- ❗ Please select a 'Scope' label ❗️ --> - [x] `sdk` — Changes the tldraw SDK - [ ] `dotcom` — Changes the tldraw.com web app - [ ] `docs` — Changes to the documentation, examples, or templates. - [ ] `vs code` — Changes to the vscode plugin - [ ] `internal` — Does not affect user-facing stuff <!-- ❗ Please select a 'Type' label ❗️ --> - [x] `bugfix` — Bug fix - [ ] `feature` — New feature - [ ] `improvement` — Improving existing features - [ ] `chore` — Updating dependencies, other boring stuff - [ ] `galaxy brain` — Architectural changes - [ ] `tests` — Changes to any test code - [ ] `tools` — Changes to infrastructure, CI, internal scripts, debugging tools, etc. - [ ] `dunno` — I don't know
This commit is contained in:
parent
88ee4e9993
commit
98598fa7d6
1 changed files with 2 additions and 1 deletions
|
@ -102,8 +102,9 @@ export class NoteShapeUtil extends ShapeUtil<TLNoteShape> {
|
|||
const zoom = this.editor.getZoomLevel()
|
||||
const offset = CLONE_HANDLE_MARGIN / zoom
|
||||
const noteHeight = getNoteHeight(shape)
|
||||
const isCoarsePointer = this.editor.getInstanceState().isCoarsePointer
|
||||
|
||||
if (zoom < 0.25) return []
|
||||
if (zoom < 0.25 || isCoarsePointer) return []
|
||||
|
||||
return [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue