-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
positioning.lua: add this script #15314
base: master
Are you sure you want to change the base?
Conversation
Download the artifacts for this pull request: |
2521e31
to
85a3d2a
Compare
Can we add default keybindings for those commands? Else it will become dead code. |
Sure I was trying not to burden the original proposal with breaking changes. What about: Move cycle pause to MBTN_LEFT Unfortunately we can't easily set different default key bindings for images if we're set on deprecating input sections. |
I'm using a touchpad but not sure how exactly I'm supposed to keybind it Ctrl+MBTN_LEFT script-binding drag-to-pan. (this one works) |
This script provides script messages and bindings to pan videos and images, making mpv a better image viewer out of the box.
85a3d2a
to
f0b043f
Compare
thanks for the help..yes the centric-cursor-zoom works great on touchpad. Thanks for adding these...gonna use mpv as main image viewer on mac. These are great additions. Ctrl+Wheel_Down add video-zoom -0.05 #! [Video/Image] > [Scale] > Zoom Out (scroll down) |
Yeah I know it works on a touchpad, by untested touch input I meant devices like tables which populate the |
This script provides script messages and bindings to pan videos and images, making mpv a better image viewer out of the box.
I've had this script for 3 years in my image config so why not upstream it to view images better out of the box. Credits to occivink for the original ideas of the bindings.
I also have a mouse gesture and a oneshot double page mode in my script but those may not be worth upstreaming.
For the reasoning behind the
suppress_osd
naming, see #9051 (comment)Touch input in
cursor-centric-zoom
is untested.For negative zoom, I think we need a global option like
--auto-recenter-video
(implemented invo_get_src_dst_rects()
?) to reset video-align to 0 when the image is smaller than the OSD, so that it also applies when changing video-zoom/panscan/video-unscaled/video-aspect-override/video-scale/changing file. Then positioning.lua should do nothing when that option is true and the image is smaller than the OSD. In my config, I use