Summary: | New overview/grid animation does not feel as precise when using touchpad gestures | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Prajna Sariputra <putr4.s> |
Component: | effects-overview | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dev.bacteriostat, fanzhuyifan, nate, niccolo |
Priority: | NOR | Keywords: | qt6 |
Version: | master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/9e81d2f65c8c4ecdf94f81e7ca15b4bcc0995fb0 | Version Fixed In: | |
Sentry Crash Report: |
Description
Prajna Sariputra
2023-11-04 08:38:31 UTC
> The issue goes away if I set the animation speed to Instant
That's quite a relevant data point, thanks. I can reproduce your observations. It would appear that some of the transitions here are inappropriately using an animation with a nonzero duration, so when you activate the gesture with a finger, a gazillion animations fire off, even though none of them are needed since toughpad gestures are supposed to be finger-following and hence just use non-animated/linear transitions. We on;y want to play the animations when activating the effect with something that's *not* a touchpad gesture.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4621 Git commit 9e81d2f65c8c4ecdf94f81e7ca15b4bcc0995fb0 by Nate Graham, on behalf of Niccolò Venerandi. Committed on 15/11/2023 at 18:41. Pushed by ngraham into branch 'master'. plugins/overview: Bind values to 1:1 animation while gesture is ongoing Otherwise the animation feels wrong while activating with a gesture. Now when a 1:1 gesture is ongoing, then the Overview effect will stop animating the overviewVal/gridVal values. I implemented this by porting to states, giving 1:1 gestures their own states, and only animating the change between states. M +3 -2 src/libkwineffects/effecttogglablestate.cpp M +0 -5 src/plugins/overview/overvieweffect.cpp M +82 -27 src/plugins/overview/qml/main.qml https://invent.kde.org/plasma/kwin/-/commit/9e81d2f65c8c4ecdf94f81e7ca15b4bcc0995fb0 I still feel that using touchpad swipes to switch desktops in overview mode feels qualitatively different from the sliding desktop effect. This is a minor point, but I feel that some more consistency is good. In particular, with the sliding desktop effect, I feel that there is perfect 1:1 correspondence between the swipes and the locations of desktops on the screen. But in the overview mode, I notice some sort of weird acceleration when I am about to completely switch to a new desktop. Also, the distance that I need to swipe feels slightly different (I am less sure about this). Would it be appropriate to reopen this report or should I submit a new one? The issue with the desktop switching animation in the overview was noted in the merge request discussion (https://invent.kde.org/plasma/kwin/-/merge_requests/4621#note_804254), Niccolò said that the fix for that would be more complex. So, I'd say it would be better to open a new bug report to focus on that animation specifically, given the apparent difference between it and the rest of the overview/grid effect. |