mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Pinch to resize window

Open yegle opened this issue 8 years ago • 12 comments

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.

yegle avatar Jun 05 '16 19:06 yegle

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.

Hrxn avatar Jun 05 '16 20:06 Hrxn

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.

yegle avatar Jun 05 '16 21:06 yegle

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

Hrxn avatar Jun 05 '16 21:06 Hrxn

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.

yegle avatar Jun 05 '16 21:06 yegle

Ah, okay, then I misunderstood, sorry.

Hrxn avatar Jun 05 '16 22:06 Hrxn

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)

haasn avatar Jun 16 '16 07:06 haasn

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

Argon- avatar Jun 16 '16 07:06 Argon-

ralated to #6434

Akemi avatar Sep 21 '19 16:09 Akemi

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

Akemi avatar Jan 22 '20 16:01 Akemi

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

poteau avatar Aug 24 '22 03:08 poteau

no, you can request one.

Akemi avatar Aug 24 '22 05:08 Akemi