-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
[KDE 6] Alt drag/zoom stops working after a short amount of time #1071
Comments
You're using Testing the other |
yes, i'm using alt+pen, as well as alt+shift+pen. tested it on SwayWM and it has the same issue. probably, as you said, event handling issues. |
same issue, disabling windows ink fixes the problem but i lose pressure sensitivity, as mentioned on the duplicate issue OS: Win 11 |
Same issue for me, but i'm on linux, not windows: Is there anything I can do to help debug the issue further? I'm able to run rnote from source as well and could collect some additional debug information if needed. |
@mrWinston The relevant code is here : rnote/crates/rnote-ui/src/canvaswrapper.rs Lines 496 to 525 in 2e0d148
Line 501 may be why though. For subsequent drags Maybe changing to something like And looking at the same time at traces from crates/rnote-ui/src/canvas/input.rs for catching inputs that wouldn't be captured by the GestureDrag part. I haven't looked in detail on why this happen. |
I have tried to fix this, but failed. I gathered some information though. The drag gesture itself seems to end (at least in my case and changing it to Not sure if this helps at all, but when I tap on the titlebar, next drag works as expected and after that it gets broken again until I tap on the titlebar again. |
Yeah, this is helpful (if it resets on clicking on the titlebar, it's possible there's some internal gtk state that becomes inconsistent causing the issue and tapping on the titlebar resets the gesture which is tied to the canvas). Logging all signals related to the gesture, I get
The @esensar Are you on linux ? On windows the behavior is somehow different (the alt gesture always starts correctly but stops at some point and the stylus begins writing instead). |
I have noticed similar logs in my case too. It looks as if a mouse event was triggered right at the start and that it stops the gesture. I have no idea how GTK handles these as I haven't really worked with it, but I can see that no events are logged from canvas when the gesture works (because gesture captures these events before they reach canvas I guess?).
I am on Linux. I see this issue when I am on Sway WM. I have also tried GNOME and it works as expected there. The only reliable way to get it to work has been to tap on the titlebar before always, so I guess there might be some issue with the canvas taking focus, or something like that (again, I haven't worked with GTK, so I am just guessing 😄 ). |
I'm running with
on windows and I see on windows a
Can you check with |
It is similar, it does not send the event with
|
I've opened an upstream issue on gtk4's gitlab https://gitlab.gnome.org/GNOME/gtk/-/issues/7383 Edit: making good progress on this, at least where the issue originates in gtk4's code. |
Describe the bug
When using RNote on KDE 6, when using alt to scroll or to zoom, it stop working after a short amount of time, instead making a stroke instead
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It shouldn't stop scrolling/zooming.
Console Output
Run the app in the terminal with
flatpak --env=RUST_LOG=rnote=debug --env=RUST_BACKTRACE=1 run com.github.flxzt.rnote
and post the output.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Let me know if I've missed anything
The text was updated successfully, but these errors were encountered: