Skip to content

Conversation

@DaAnda97
Copy link
Contributor

@DaAnda97 DaAnda97 commented Dec 16, 2022

As a user who works on a touchpad, I want to be able to use my pens eraser.

My first approach was to set eraseMode(true) via ReactSketchCanvasRef, but the setting was considered too late and the eraser of my pen started drawing a line. Checking for the eraser immediately during the event fixed it for me.

The feature was tested on a Windows Surface Book 2 using the Surface Pen.

@DaAnda97 DaAnda97 closed this Dec 16, 2022
@DaAnda97 DaAnda97 deleted the feat/eraser branch December 16, 2022 09:43
@DaAnda97 DaAnda97 restored the feat/eraser branch December 21, 2022 08:12
@DaAnda97 DaAnda97 reopened this Dec 23, 2022
@vinothpandian vinothpandian self-requested a review January 15, 2023 16:51
Copy link
Owner

@vinothpandian vinothpandian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for contributing @DaAnda97 !

@vinothpandian vinothpandian merged commit 7e4480d into vinothpandian:master Jan 15, 2023
vinothpandian added a commit that referenced this pull request Jan 15, 2023
(cherry picked from commit 7e4480d)

; Conflicts:
;	packages/react-sketch-canvas/src/ReactSketchCanvas/index.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants