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

[Draft]: New UI and 4 finger App navigation vertical motion gestures #107

Open
wants to merge 168 commits into
base: main
Choose a base branch
from

Conversation

adhadse
Copy link

@adhadse adhadse commented Jul 2, 2022

Hey @harshadgavali,
This is a draft PR and requires your help (and possible review). Follow up from PR #98.

Currently, the changes I have made require the user to select Extension (functionality) the user intends to use. So something like (visualize in your mind) or check ui file for gestures:
Swipe Gestures:
Three Finger gestures:

  • 3 finger Left/Right Swipe : dropdown menu
  • 3 finger Top/Down Swipe: dropdown menu
  • Pinch: dropdown menu

Four Finger gestures:

  • 4 finger Left/Right Swipe : dropdown menu
  • 4 finger Top/Down Swipe: dropdown menu
  • Pinch: dropdown menu

Apart from that I also moved swipe gestures src code files into their dedicated folder resonating with pinch gesture and tracker files.

Main Modification are done to extension.ts creating a new function that set the sub-extension and gesture using a new Class SwipeGestureToExtensionMapper given the gesture info (n_fingers, horizontal/vertical & natural scroll in case of app navigation). This class makes sure that two gestures don't get mapped to the same extension.

The problem is, here on this line the extension can be undefined which we can't push to _extensions. So that means if condition in get_extension function's switch condition, we need to generate error and throw Dialog box informing user two gestures can't be set for one functionality OR If you have some better idea.

OR we can dynamically update the model for dropdown menus as the options get selected

harshadgavali and others added 30 commits August 7, 2021 00:55
This doesn't affect fullscreen mode, as in fullscreen mode
panel is visible, but panel's parent is hidden.

Fixes harshadgavali#5
This avoids glitch where widget containing window's content is shown
above Tilepreview for very short duration, without any animation
This change makes touchscreen gesture behave as default
harshadgavali and others added 29 commits April 19, 2022 22:00
Merge forward/backward gesture to main branch and updates prefs to libadwaita
This is to avoid waiting for bindings to be available on npmjs
This makes both window switching and forwardBack gestures available
V22: Add close tab/window gesture and make forwardBack a hold-swipe gesture
This fixes issue when confirmPinch was not called, so tracker remains
in pending-ack state
…sture

This allows cyclic overview navigation as well as gnome-style navigation.
It also adds option for only desktop<->windowPicker transitions
…states

overviewRoundTrip: Add option to set navigation states for overview gesture
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.

5 participants