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

Pinch to resize window #3214

Open
yegle opened this issue Jun 5, 2016 · 12 comments
Open

Pinch to resize window #3214

yegle opened this issue Jun 5, 2016 · 12 comments

Comments

@yegle
Copy link

yegle commented Jun 5, 2016

I'd like to be able to resize the window with two finger pinch. I mainly use mpv on OS X, but it would be great if this can be implemented in Linux as well.

@Hrxn
Copy link
Contributor

Hrxn commented Jun 5, 2016

Isn't handling this stuff done by the desktop environment / window manager / compositor, etc. pp. ?
I'm not really sure, and can't test for myself right now, but I don't think that this can (or rather should) be influenced from within mpv.

@yegle
Copy link
Author

yegle commented Jun 5, 2016

I don't think any window manager will translate "pinch inside window" to "resize window". Even if there is a window manager on Linux that can do that, it's still a valid feature request for OS X users, on which users don't have much control on the window manager customization.

This feature is available in MPlayerX and I hope this could be in mpv as well.

@Hrxn
Copy link
Contributor

Hrxn commented Jun 5, 2016

But MPlayerX is also for OS X, as far as I know. How do you get from there to implementation "in Linux as well"?

@yegle
Copy link
Author

yegle commented Jun 5, 2016

Yes so I'm asking to get this feature in OS X version of mpv, and better if this can also be done in the Linux version.

@Hrxn
Copy link
Contributor

Hrxn commented Jun 5, 2016

Ah, okay, then I misunderstood, sorry.

@haasn
Copy link
Member

haasn commented Jun 16, 2016

The only way I see this getting implemented is in the form of some way to translate multi-touch positional information to Lua code.

Then you could write your own Lua script for pinch-resize (or pinch-zoom, or panning, or gestures, or whatever else you can think of)

@Argon-
Copy link
Member

Argon- commented Jun 16, 2016

Apparently there actually are Lua libraries for multi-touch... So it should/might/can be possible.

@Akemi
Copy link
Member

Akemi commented Sep 21, 2019

ralated to #6434

Akemi added a commit to Akemi/mpv that referenced this issue Jan 22, 2020
the event returns a delta ratio so we can just add it to the current
window-scale.

Adds support for mpv-player#3214
@Akemi
Copy link
Member

Akemi commented Jan 22, 2020

for macOS please test #7382 if possible. otherwise i will merge it.

Akemi added a commit that referenced this issue Jan 26, 2020
the event returns a delta ratio so we can just add it to the current
window-scale.

Adds support for #3214
@Akemi Akemi removed the os:mac label Jan 26, 2020
@poteau
Copy link

poteau commented Aug 24, 2022

@Akemi Now that this is implemented, is there an easy way to disable this functionality? There should be a config toggle or something.

@Akemi
Copy link
Member

Akemi commented Aug 24, 2022

no, you can request one.

@na-na-hi
Copy link
Contributor

na-na-hi commented May 1, 2024

Lua scripts should be able to implement this with #14003. Note that X11 isn't supported by that PR, but it's planned.

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

7 participants