elementary / switchboard-plug-mouse-touchpad

Switchboard Mouse & Touchpad Plug
GNU General Public License v3.0
24 stars 13 forks source link

Restore or unmaximize window with, say, four-finger swipe down gesture on touchpad #170

Open vjr opened 3 years ago

vjr commented 3 years ago

Problem

Currently there is an option to swipe up with four fingers to maximise a window but there does not seem to be a corresponding option to swipe down with four fingers to restore (unmaximise) the window.

Proposal

Add a setting and gesture to restore/unmaximise windows with downward (four finger?) swipe.

Prior Art

(unknown)

JoseExposito commented 3 years ago

Hi, to restore the window, you can swipe up again. Probably, the text displayed in System Settings could be improved so it is clear how this feature works.

vjr commented 3 years ago

Doh! Yes this gesture is already there!

Is it possible to experiment or adjust the travel required to trigger a gesture?

What I mean is that if I position my hand vertically so that my 3 or 4 fingers are lined up horizontally then I can trigger the gestures more reliably since there is space on the trackpad to move from the lower portion to the upper portion.

But since my laptop is relatively small sized compared to my arm length, my fingers line up almost vertically leaving very little room to for swipe distance or travel, causing the gesture to not register.

Do you know what I mean? I will post a picture here of my hand resting on the trackpad which might show the lack of room to maneuver.

vjr commented 3 years ago

20210411_150956

JoseExposito commented 3 years ago

@elementary/ux what do you think about clarifying this in system settings? It is not obvious that the maximize action can be reverted by performing the same gesture.


Is it possible to experiment or adjust the travel required to trigger a gesture?

This is more of a Touchégg config thing than a elementary OS thing, but yes, it is possible: https://github.com/JoseExposito/touchegg#daemon-configuration

You can lower your current finish_threshold param so it is easier to trigger the gesture, but have in mind that this will also affect 3 finger swipes. Feel free to create a bug report on the Touchégg repo if you have problems configuring it.

vjr commented 3 years ago

I see it is configurable but recommended to leave the defaults untouched. Good to know. Can play with the settings if required.

Just saw your post, thank you! We can close this issue after any UX team input.

vjr commented 3 years ago

Perhaps simply rewording the label from "Maximise Window" to "Maximise or Restore Window" if it doesn't take up too much space compared to the other texts?

Leleat commented 3 years ago

Perhaps simply rewording the label from "Maximise Window" to "Maximise or Restore Window" if it doesn't take up too much space compared to the other texts?

Toggle Maximization would be pretty short

cassidyjames commented 3 years ago

I might be misunderstanding this, but I think I would expect this to actually behave like four-finger vertical swiping handles maximizing: swiping up maximizes, while swiping down restores. It makes less sense to bind four fingers swiping up to toggle maximization.