mpv-player / mpv-player/mpv

Please support pressing Ctrl + left mouse button(Ctrl+MBTN_LEFT) to drag the video screen to any position. Ctrl+MBTN_LEFT

Open
#15,960 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Expected behavior of the wanted feature
  1. Please support pressing Ctrl + left mouse button(Ctrl+MBTN_LEFT) to drag the video screen to any position.
    Ctrl+MBTN_LEFT

Hello! Regarding the 2nd function, the range size of video moving by mouse dragging is not enough and limited by the inner window, is it possible to customize the range size of video moving by dragging and release the inner window limitation of video moving by mouse dragging.

There is also an issue that the process is not smooth and fluid when using the mouse drag-to-pan video.

Issues to be resolved:
Issue 1: Allow users to customize the range size of the drag video movement;

Issue 2: Unlock the internal restrictions on the window for dragging video movement using the mouse;

Issue 3: The process is not smooth and fluid when using mouse drag-to-pan video.

The current effect:

https://github.com/user-attachments/assets/ce50debc-3745-4028-a42c-9d4954230a71


The best effect would be something like the following:

https://github.com/user-attachments/assets/e3fece51-1536-4265-8582-b162481de4c3

The best result should be that the process is very fluid, very smooth and natural when using the mouse drag-to-pan video.


mpv v0.39.0-dev-g66659a4b1 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
built on Feb 24 2025 16:33:45
libplacebo version: v7.350.0
FFmpeg version: a66a916
FFmpeg library versions:
libavcodec 61.19.100
libavdevice 61.3.100
libavfilter 10.4.100
libavformat 61.7.100
libavutil 59.39.100
libswresample 5.3.100
libswscale 8.3.100


  1. Windows 10 19044
  2. CPU i5 3210
  3. Memory 8G
  4. Graphics card:
    4.1. Intel Integrated Graphics 4000
    4.2. NVIDIA: GT610
  5. Western Digital mechanical hard drive 5400 rpm

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reproducing the existing mouse drag-to-pan behavior with mpv v0.39.0-dev on the reported Windows setup, then trace the current video-drag interaction. Done means Ctrl+left-button dragging supports the requested range without the inner-window restriction and moves the video smoothly.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
audio-video-rtc, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.