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

Respect Fitts's Law when in full screen #9791

Open
nick-s-b opened this issue Jan 29, 2022 · 1 comment
Open

Respect Fitts's Law when in full screen #9791

nick-s-b opened this issue Jan 29, 2022 · 1 comment

Comments

@nick-s-b
Copy link

Expected behavior of the wanted feature

Hi all,

I find it that mpv in full screen mode does not take advantage of "magic corners" and Fitts's Law. In a nutshell, when you quickly move your mouse to one of the corners (mainly the top left or right (to close the window) or to bottom left (to access play/pause buttons), the UI overlay does get activated but you cannot press the buttons or perform actions that are in those corners.

Wikipedia description of Fitts's Law describes it as: https://en.wikipedia.org/wiki/Fitts's_law

Fitts law (often cited as Fitts' law) is a predictive model of human movement primarily used in human–computer interaction and ergonomics. This scientific law predicts that the time required to rapidly move to a target area is a function of the ratio between the distance to the target and the width of the target.

And "magic corners are"

This effect can be exaggerated at the four corners of a screen. At these points two edges collide and form a theoretically infinitely big button. Microsoft Windows (prior to Windows 11) places its "Start" button in the lower left corner and Microsoft Office 2007 uses the upper left corner for its "Office" menu. These four spots get called the “magic corners”. [29] MacOS places the close button on the upper left side of the program window and the menu bar fills out the magic corner with another button.

For example, if I move my mouse to top left corner of the screen when in full screen mode, I see this:

2022-01-28-211856_3840x2160_scrot

I should be able to click and "close window" should be activated. But it is not. I have to move the pointer few pixels to the right and down to actually click the close button. That requires fine motor movement and takes time. Same when I move my mouse pointer to bottom left:
2022-01-28-211924_3840x2160_scrot
Again, I cannot activate the play/pause button because the UI does not recognize a left bottom corner as clickable.

Making buttons in corners clickable would make the mpv a lot easier and faster to use and would minimize the need for micro-movements and adjustments. That would also benefit disabled people.

@lextra2
Copy link

lextra2 commented Jan 29, 2022

I agree with OP. But I also want to say, if you want to maximize speed, get used to keyboard shortcuts.

dexeonify added a commit to dexeonify/mpv-config that referenced this issue Apr 13, 2022
Increase the geometry of the window controls to match the height of
wcBar, so that the close button is clickable when you move the cursor to
the top right corner in fullscreen.

I don't plan on doing the same with the volume button and fullscreen
button since they are too far away from their respective corners.

Originally inspired from mpv-player/mpv#9791
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants