-
How can I block drawing? Make it view-only mode |
Beta Was this translation helpful? Give feedback.
Answered by
dninomiya
Sep 5, 2023
Replies: 3 comments 1 reply
-
Right now there is no option. But if you import the Canvas instead of ReactSketchCanvas you can easily solve this by using the handlers |
Beta Was this translation helpful? Give feedback.
0 replies
-
I solved with CSS pointer-event. <button onClick={() => setReadOnly(true)}>read only</button>
<div className={!readOnly && 'pointer-events-none'}>
<ReactSketchCanvas />
</div> (with Tailwind CSS) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vinothpandian
-
From release v7.0.0.next.4, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I solved with CSS pointer-event.
(with Tailwind CSS)