Comments (14)
Unfortunately your laptop is telling Saber that your stylus is a finger, so I can't do much about it.
But after the stylus has been detected, it properly disables touch input +1
That's probably just hardware palm rejection.
from saber.
I have a question: Which protocol is your 2in1 laptop/pen using?
Mine is using MPP (Microsoft Pen Protocol or Windows Pen Protocol - known under both names)
Also, I'm running the flatpak under wayland.
Maybe this might be the same problem as seen on
LinwoodDev/Butterfly#238.
And thus related to flutter/flutter#63209.
I'm not sure, but maybe flutter/engine#38902 might solve this
from saber.
Hi, This functionality is already implemented (when finger drawing is disabled, you can still draw with a stylus). Your stylus+Linux is probably not supported with Flutter: I've also got a Dell 2-in-1 and mine is just detected as a finger rather than a stylus too.
from saber.
Oh sorry – I'll try it with sway(wayland) and awesome(Xorg) maybe it is just not working o
in Gnome
from saber.
I think I also did a bad job formulating the issue,
my stylus works (I can draw lines).
But the eraser (both buttons) do not work (I don't necessarily care about pressure sensitivity).
Additionally, when placing down my hand on the touchscreen before it detects the stylus, it draws a line,
connecting my hand with the point of the stylus was detected.
But after the stylus has been detected, it properly disables touch input 👍
from saber.
I haven't checked your code (the pubspec.yml
shows a lot of dependencies, but I don't know what they are used for), but are you using a library to get the events?
Because if so, I might file an issue upstream, because both krita
and xournalpp
have no problem getting pressure readings.
from saber.
I haven't checked your code (the
pubspec.yml
shows a lot of dependencies, but I don't know what they are used for), but are you using a library to get the events? Because if so, I might file an issue upstream, because bothkrita
andxournalpp
have no problem getting pressure readings.
I'm just using a regular Listener
widget. But I might have an idea now that could help with this
from saber.
If that patch works, you may still want to open an issue with flutter regarding styluses not being detected as a PointerDeviceKind.stylus
https://github.com/adil192/saber/blob/290387b8d78b51749aded242f23d526f83f28dfb/lib/components/canvas/canvas_gesture_detector.dart#L104-L112
from saber.
Please try out Linux Build #209
from saber.
I'm not sure if I installed it correctly (I did not uninstall the flatpak flathub beforehand):
- unzip the artifact
flatpak install ./Saber.flatpak
flatpak run com.adilhanney.saber
But it doesn't work.
Either way, I'm only able to use my stylus when the finger drawing
feature is enabled.
from saber.
I just installed the xournal flatpak and pressure sensitivity is working properly.
So I'll probably have to file a flutter bug-report
from saber.
I have a question: Which protocol is your 2in1 laptop/pen using?
Mine is using MPP (Microsoft Pen Protocol or Windows Pen Protocol - known under both names)
Mine also uses MPP
I just installed the xournal flatpak and pressure sensitivity is working properly.
So I'll probably have to file a flutter bug-report
I don't believe Xournal uses flutter so it's probably best not to duplicate the issues you mentioned
from saber.
I don't believe Xournal uses flutter so it's probably best not to duplicate the issues you mentioned
What I meant was that maybe Flatpak under Wayland doesn't send the correct stylus events (In that case, filing a bug report for flatpak would have made more sense)
from saber.
Update: I just installed Waydroid and inside of it I installed Saber via F-Droid, to see if my stylus works.
And indeed my stylus works properly, and I'm able to write without having the finger-draw
feature enabled. Even pressure-sensitivity is working fine.
from saber.
Related Issues (20)
- Canvas shifts when selecting or when changing size of brush
- Allow to drag the page farther to the side
- "Import note" button does nothing on Linux (Flatpak) HOT 3
- Note is shown in landscape expanded sidebar
- Keep current zoom level when adding a page
- F-Droid build failed HOT 3
- Some issues & advice for text editing
- Allow Configuration of Minimum Line Length
- adding a scroll direction feature [ horizantal / vertical ] [ like a real book if possible]
- include search bar on all floders recursively HOT 1
- app is lagging on samsung tablet HOT 1
- New versions not available on F-Droid HOT 2
- Option to turn off stylus button undo HOT 2
- Allow different backgrounds / layouts in a note
- Make Exported PDF text searchable/copyable
- Handwriting gone HOT 1
- IME like fcitx on Linux don't work
- [Bug] AppImage won't start HOT 2
- Can't export to pdf HOT 8
- App does not sync with clouds that have 2FA. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from saber.