-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stylus eraser button support #52
Comments
If it is only possible to listen for button events when the pointer is above the screen, it is still perfect for using the eraser. Samsung Notes, for example, activates the eraser while holding the button and switches back to the normal pen when lifting the finger off. Or was that what you were talking about, that that is not possible? |
At least with my tablet, this is what happens when I try to draw with the eraser button down:
This can be seen by checking the "live update" checkbox on the input logging page, pushing the eraser button, then trying to draw. Additionally, MDN and the PointerEvents spec state that Input log
Notes:
|
I tried it. While connected to air actions it definitely registers the button press. Dont know how to test whether it works with the button pressed for a long time. There is no reaction for that |
Samsung Internet does seem to send pointer events when drawing with the eraser button pressed. However, these pointer events have |
Yes i see that. I didnt get any event when eraser buttons is pressed. Strange. It should be 32 |
FWIW now that this lib is included in Joplin for handwritten notes, this would improve a lot the note-taking experience in Samsung tablets with S-Pen. |
Previously, the pen-eraser-button shortcut for switching from a pen to an eraser was broken. This commit **should** fix the issue. However, I don't have a device with a (working in a browser) eraser button to test.
the chinese app touchnotes supports erasing with a samsung pen. No other pen events are working, but the pressing and holding event does work, so there is defeinitely a work around for there |
Did you try to fix it in May. What should I try? |
In Joplin, Possible next steps:
|
Currently, the eraser button on physical styluses does nothing.
At present, this is because Chromium seems to not report stylus events when the stylus is down (just when the stylus is above the screen), or a bug in how
js-draw
is registering pointer event listeners.Even if we can only listen for button events when the pointer is above the screen, pressing the button could be used to, for example, switch tools.
Update:
The text was updated successfully, but these errors were encountered: