Skip to content

Commit

Permalink
input.conf: bind MBTN_MID_DBL to resetting pan
Browse files Browse the repository at this point in the history
Allow resetting pan with the mouse after binding drag to pan to the
mouse.
  • Loading branch information
guidocella committed Dec 16, 2024
1 parent 19775e3 commit f46c070
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DOCS/man/mpv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,9 @@ Right click
Middle click
Pan through the whole video while holding the button.

Middle double click
Reset pan.

Forward/Back button
Skip to next/previous entry in playlist.

Expand Down
1 change: 1 addition & 0 deletions etc/input.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen
#MBTN_RIGHT cycle pause # toggle pause/playback mode
#MBTN_MID script-binding positioning/align-to-cursor # pan the whole video
MBTN_MID_DBL no-osd set video-align-x 0; no-osd set video-align-y 0; no-osd set video-pan-x 0; no-osd set video-pan-y 0 # reset pan
#MBTN_BACK playlist-prev # skip to the previous file
#MBTN_FORWARD playlist-next # skip to the next file
#Ctrl+MBTN_LEFT script-binding positioning/drag-to-pan # pan around the clicked point
Expand Down

0 comments on commit f46c070

Please sign in to comment.