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

Implement (better) workspace switching via swipe gestures #2764

Conversation

kristijanribaric
Copy link
Contributor

This PR implements workspace switching using swipe gestures on the navigator toolbox and tab bar. It introduces new event listeners for MozSwipeGesture* events to detect and handle horizontal swipes.

The logic determines the swipe direction and switches to the next or previous workspace accordingly, taking RTL layout into account. The implementation uses a state object to track the gesture progress and prevent unintended workspace switches.

This commit implements workspace switching using swipe gestures on the
navigator toolbox and tab bar. It introduces new event listeners for
`MozSwipeGesture*` events to detect and handle horizontal swipes.

The logic determines the swipe direction and switches to the next or
previous workspace accordingly, taking RTL layout into account.  The
implementation uses a state object to track the gesture progress and
prevent unintended workspace switches.
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Feature labels Nov 9, 2024
@mauro-balades mauro-balades merged commit e9e2e9a into zen-browser:dev Nov 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants