-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
[gnome 40] Slide workspace using gestures plays animation twice. #185
Comments
Can someone with a device supporting gestures please confirm this? @MonsieurLanza Is the animation correct if this extension is disabled? |
This happens to me as well, on Fedora 34 Gnome 40.4. Most other ways of traversing workspaces look fine but using touchpad gestures does this double animation playback thing. It does not happen without this extension. |
Thanks @KristianUSN! Now we need someone with an appropriate device to have a look at the code. |
Here is what happens, first without wsmatrix extension, then with it activated. Note that I only did simple swipe, the gnome animation follows the gesture : you can go back and forth when swiping. |
@MonsieurLanza touchegg with |
I can confirm the problem happens for me too, seems like the event "workspace changed from x to y" is triggerred after the gesture is over (always left-right or right-left) and so workspace matrix animation is played while visually we already have the feeling of being on the right workspace. When using the keyboard only workspace matrix animation is displayed (with the right direction, including up/down). Not sure that helps but that's what I think happens. Note that now with gnome the gesture is not a single event but you can maintain it between 2 workspaces for instance, so the real action is at release. |
Not sure what's the correct procedure but +1, having the same issue. |
just to add some extra details, it's not actually true that the animation is played twice, rather, two things happen.
this explanation is harder to understand in writing than to see in action, once you disable gnome-shell's animations it'll be clearer: |
I have the same issue. I agree with what myyc said. Also, even if animations are disabled the behavior is a bit glitchy. You see a flicker of the previous screen once you are done swiping. |
I have the same issue on GNOME 44.2, Wayland, Ubuntu 23.04. When I disable the extension, workspace switching via swiping works fine, so the solution to this issue might be to remove the workspace switching code if the GNOME version is high enough? You would definitely need to keep the wrap-around feature though since GNOME doesn't support it. Wrap-around is my primary reason for using this extension :) |
I have the same issue on GNOME 45 and I have v43 of the extension installed. I'm not fond of disabling animations, although it would solve the problem. Is this going to be patched anytime soon? |
Since I don't have the hardware to test this, someone else has to pick it up. I'm afraid this won't be anytime soon. |
Do you need a specific hardware for this? Doesn't this happen when you use the mouse? |
You need a trackpad or a touchscreen and I have neither. |
I have the trackpad if I can be of any help, but I don't know where to start. Any guidance? |
You probably have to start with the custom WorkspaceAnimationController: gnome-shell-wsmatrix/[email protected]/workspacePopup/workspaceAnimation.js Lines 220 to 256 in bfcc56b
The original class has an |
+1 I can confirm this happens also on GNOME 46/47 Wayland. |
As a temporary workaround I am using this extension which disables this animation. Possibly it could be incorporated into this extension as well? https://github.com/amalantony/gnome-shell-extension-instant-workspace-switcher |
I just got my hands on a new laptop, which can handle gestures… You can slide workspaces with 3 fingers, left or right (yeah, there’s already an issue with the gesture itself here, in case of vertical sliding).
What happens is that when I slide a workspace (always horizontally, as I said), it re-plays the animation afterward, which is a somewhat awkward.
(may include video later on, if gnome-shell and my schedule let me record it)
The text was updated successfully, but these errors were encountered: