Repository navigation
Samsung Spen Support - Requesting momentary button functionality for erase tool with S Pen side button #209
Replies: 6 comments
|
Thanks, glad it works well on the Tab S9+! This is the same as #149: when the side button is already held as the S Pen touches the screen, Android doesn't pass that stroke on to Obsidian, so FineNotes can't make hold-to-erase work. The closest we can get is in 2.9.0: Settings › Side button click › Switch to the eraser. Click the side button with the pen in the air to switch to the eraser, and click again to go back to your pen. |
|
2.10 includes a fix for the s-pen. Lmk how it goes. |
|
Thanks for the work on #149. I can see the new hold-to-erase is a real attempt to get around how Obsidian handles the S Pen on Android. On my tablet, though (Tab S10 Ultra, Android 16), erasing still feels a bit uncomfortable. So I’d like to suggest a gesture I implemented in an Android app of my own some time ago, and it worked very well: erase on hover. Hold the side button and bring the tip close to the screen without touching it, and that erases. The S Pen’s hover range is generous, so it feels natural, and since the pen never touches the glass, text selection doesn’t get in the way. Happy to test a build through BRAT. Thanks again for FineNotes! |
|
@gbielserpa Thanks for the idea, erase on hover is now in a beta. Could you try it on your Tab S10 Ultra?
If it doesn't erase, run the command Copy shape diagnostics (it now includes the pen's last hover and button events) and paste the result here. |
|
Tested your hover-erase on my Tab S10 Ultra (SM-X920, Android 16, One UI 8.5, Obsidian 1.15.1, WebView 157.0.8103.50), built from main at 941ac42 with Stylus side button = "Erase, also hovering". It doesn't erase here, and I think I found why. I logged both ends while hovering with the button held: Kernel (getevent on sec_e-pen): fine. 44 s of BTN_STYLUS down with ~15,700 position updates, distance 7–90, no BTN_TOUCH. So unlike the Tab S9 FE in #149, hovering moves never reach JS on this tablet, with or without the button, so HoverErase never gets a reading. Android's own hover settings are on (pen_hovering=1, pointer on). Happy to run any build or snippet you want through remote debugging. |
|
Thanks @gbielserpa, that log is exactly what was needed. Since your tablet passes no hovering events to Obsidian, erasing on hover can't work there. Pressing the side button in the air does still arrive, so the next beta uses that to get ready: hold the side button, then write over what you want gone, and it should erase. To test, once the next beta is out: install it through BRAT, keep Stylus side button on Erase, also hovering (or Erase), hold the button and draw across some ink. If it doesn't erase, run Copy shape diagnostics and paste the |

Uh oh!
There was an error while loading. Please reload this page.
I found that the program runs very well on the samsung tab S9+ in the pen support is phenomenal but the only issue I have with this current build is when I'm using the erase tool. Currently with the settings available I can only really map the hover click of an S Pen to the erase tool. There's is no current setting that allows me to hold down the side button on my S Pen to enable the erase tool and then when I let go of the side button is when it goes back to the pen tool. I've been using Samsung Notes for a long time now and if this plug-in had that feature where erasing is just as familiar as Samsung Notes, I'd be switching over in a heartbeat as I believe currently it beats every other feature that Samsung Note has. Let me know if you need any more clarification of what I'm trying to convey.
All reactions