Skip to content

Commit

Permalink
input.conf: bind Ctrl+left click to drag-to-pan
Browse files Browse the repository at this point in the history
An alternative is to bind to right click only for images, but since we
will likely bind right click to the context menu once it works on
platforms other than Windows, bind to ctrl+left click to not have to
change it later.
  • Loading branch information
guidocella committed Dec 20, 2024
1 parent 4389ffd commit 07a6c12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DOCS/man/mpv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,10 @@ in the mpv git repository.
Mouse Control
-------------

Ctrl+left click
Pan while holding the button, keeping the clicked part of the video under
the cursor.

Left double click
Toggle fullscreen on/off.

Expand Down
1 change: 1 addition & 0 deletions etc/input.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#MBTN_RIGHT cycle pause # toggle pause/playback mode
#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

# Mouse wheels, touchpad or other input devices that have axes
# if the input devices supports precise scrolling it will also scale the
Expand Down

0 comments on commit 07a6c12

Please sign in to comment.