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

Restricted scrolling beyond the first and last workspaces and fixed bug with Sidebar Switches Multiple Spaces Instead of One #3289

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

neurokitti
Copy link
Contributor

I fixed this bug #3162

I made is to that if you keep swiping at the end of a workspace it no longer just wraps around.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Bug labels Nov 29, 2024

let targetIndex = currentIndex + direction;

if (Services.prefs.getBoolPref('zen.workspaces.wrap-around-navigation', false)) {
Copy link
Member

Choose a reason for hiding this comment

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

Could this be moved into a lazy preference getter?

? currentIndex + 1
: currentIndex - 1;

if (Services.prefs.getBoolPref('zen.workspaces.wrap-around-navigation', false)) {
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants