From 724520bac252ce6e5c77b5c8904c0e9a34111388 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Mon, 16 Dec 2024 11:34:24 +0100 Subject: [PATCH] input.conf: bind MBTN_MID_DBL to resetting pan Allow resetting pan with the mouse after binding drag to pan to the mouse. --- DOCS/man/mpv.rst | 3 +++ etc/input.conf | 1 + 2 files changed, 4 insertions(+) diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index ab7e2ce7e658c..1149b9f2e0ea8 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -360,6 +360,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. diff --git a/etc/input.conf b/etc/input.conf index 76ce5a2c2742f..4718ec6d91cbf 100644 --- a/etc/input.conf +++ b/etc/input.conf @@ -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