Skip to content
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

Fix awkward two-finger scroll in multitasking view #1499

Merged

Conversation

GranPC
Copy link
Contributor

@GranPC GranPC commented Dec 21, 2022

Easing wasn't being correctly used when scrolling between workspaces with the touchpad in the multitasking view. There were two problems with this: scrolling seemed to lag behind the user's fingers sometimes, and letting go of the touchpad would almost always cause a jarring jump.

This little patch fixes both of these issues, making everything silky smooth.

If someone's not clear on what specifically we're solving here, I could record my screen and my hand on my touchpad before & after this patch. It really is night and day.

GranPC and others added 2 commits December 21, 2022 15:53
Easing wasn't being correctly used when scrolling between workspaces
with the touchpad in the multitasking view. There were two problems
with this: scrolling seemed to lag behind the user's fingers sometimes,
and letting go of the touchpad would almost always cause a jarring jump.

This little patch fixes both of these issues, making everything silky smooth.
Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the issue. But is it necessary to introduce a one line one-time method? IMO it would be better to just put comment and workspaces.set_easing_duration (0); in the else block.

@GranPC
Copy link
Contributor Author

GranPC commented Dec 21, 2022

Probably not. I created the method thinking I'd have to reset more state, but it turns out that one line was sufficient.

Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! ❤️

@lenemter lenemter merged commit c175d26 into elementary:master Dec 21, 2022
@GranPC
Copy link
Contributor Author

GranPC commented Dec 21, 2022

Thanks :) Only got a couple things left to fix here, and then Gala will be practically perfect for me! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants