Skip to content

Commit 19d6393

Browse files
committed
input.conf: bind MBTN_MID_DBL to resetting pan
Allow resetting pan with the mouse after binding drag to pan to the mouse.
1 parent 1f7b183 commit 19d6393

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

DOCS/man/mpv.rst

+3
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ Right click
360360
Middle click
361361
Pan through the whole video while holding the button.
362362

363+
Middle double click
364+
Reset pan.
365+
363366
Forward/Back button
364367
Skip to next/previous entry in playlist.
365368

etc/input.conf

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen
3333
#MBTN_RIGHT cycle pause # toggle pause/playback mode
3434
#MBTN_MID script-binding positioning/align-to-cursor # pan the whole video
35+
#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
3536
#MBTN_BACK playlist-prev # skip to the previous file
3637
#MBTN_FORWARD playlist-next # skip to the next file
3738
#Ctrl+MBTN_LEFT script-binding positioning/drag-to-pan # pan around the clicked point

0 commit comments

Comments
 (0)