Expected behavior of the wanted featurei have tried to change window-dragging key from MBTN_LEFT to CTRL+MBTN_LEFT but it is not working, i know we can disable it using window-dragging=no but i don't want that, as i use this many times i want to create a lua script so that i can set 2x speed on MBTN_LEFT but as i can't change window-dragging to CTRL+MBTN_LEFT i am using 0.5 sec for 2x speed if window-dragging is not enabled is there something am i missing i have this lua script Alternative behavior of the wanted featureNo response Log FileNo response Sample FilesNo response |
Replies: 2 comments 1 reply
|
With the following script, mp.set_property_number("input-dragging-deadzone", 1920)
mp.add_forced_key_binding("Ctrl+MBTN_LEFT", "ctrldrag", function(kevent)
if kevent.event == "down" then
mp.command("begin-vo-dragging")
end
end, {
repeatable = false,
complex = true
}) |
|
Try this script, that you can set 2x speed and drag with one MBTN_LEFT. https://github.com/natural-harmonia-gropius/input-event
|
With the following script,
Ctrl+MBTN_LEFTwill drag window andMBTN_LEFTalone will no longer drag and is free to do whatever you want.