Skip to content

Disable moving the canvas and line width depending on pencil pressure #3089

Answered by SomeHats
heinzkrebs asked this question in Q&A
Discussion options

You must be logged in to vote

For preventing camera movement you can do editor.updateInstanceState({canMoveCamera: false}). I'm curious though - what's your use-case for this? Why do you want to prevent students from moving the canvas around? If you'd rather not respond in public, feel free to email me: alex at tldraw.com

to prevent the drawing tool being pressure sensitive, you can switch from the 'draw' dash style to the solid one: editor.setStyleForNextShapes(DefaultDashStyle, 'solid')

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@heinzkrebs
Comment options

Answer selected by heinzkrebs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants