Skip to content

Add configurable threshold to when mousedown becomes drag #771

Description

@vaner-org

Is your feature request related to a problem? Please describe.
I use a lua script to make pausing work with a single left mouse click on the window, so that my player can be more like online video players. The issue is that I also have window dragging enabled with just left click drag, so a movement greater than 2px before releasing the mouse doesn't trigger a single-click signal, even in fullscreen.

I move my mouse between monitors pretty fast, but I always have to ensure my cursor is perfectly still on the mpv window before clicking, which makes me fail the unpause action 50% of the time.

Describe the solution you'd like
If there was a way to raise the px delta threshold after which a mousedown becomes a drag, that would be useful. When in fullscreen, it would help even more if this was even more lenient, though I imagine once its exposed I could control it via my script.

Describe alternatives you've considered
None seem to exist, at least via scripting.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions