diff --git a/docs/USER_OPTS.md b/docs/USER_OPTS.md index b76f0c2..43502d0 100644 --- a/docs/USER_OPTS.md +++ b/docs/USER_OPTS.md @@ -85,6 +85,7 @@ Create `modernz.conf` in your mpv script-opts directory: | seekrangealpha | 150 | transparency of seekranges | | livemarkers | yes | update seekbar chapter markers on duration change | | osc_on_seek | no | show osc when seeking | +| mouse_seek_pause | yes | should the video pause while seeking with mouse move? (on button hold) | | automatickeyframemode | yes | set seekbarkeyframes based on video length to prevent laggy scrubbing on long videos | | automatickeyframelimit | 600 | videos of above this length (in seconds) will have seekbarkeyframes on | diff --git a/modernz.conf b/modernz.conf index c4d45d9..33e5b76 100644 --- a/modernz.conf +++ b/modernz.conf @@ -102,6 +102,8 @@ seekrangealpha=150 livemarkers=yes # show osc when seeking? or input.conf: x script-message-to modernz osc-show osc_on_seek=no +# should the video pause while seeking with mouse move? (on button hold) +mouse_seek_pause=yes # set seekbarkeyframes based on video length to prevent laggy scrubbing on long videos automatickeyframemode=yes # videos of above this length (in seconds) will have seekbarkeyframes on diff --git a/modernz.lua b/modernz.lua index 533eed1..ccf10b6 100644 --- a/modernz.lua +++ b/modernz.lua @@ -75,6 +75,7 @@ local user_opts = { livemarkers = true, -- update seekbar chapter markers on duration change osc_on_seek = false, -- show osc when seeking? or input.conf: x script-message-to modernz osc-show + mouse_seek_pause = true, -- should the video pause while seeking with mouse move? (on button hold) automatickeyframemode = true, -- set seekbarkeyframes based on video length to prevent laggy scrubbing on long videos automatickeyframelimit = 600, -- videos of above this length (in seconds) will have seekbarkeyframes on @@ -1977,7 +1978,7 @@ local function osc_init() -- mouse move events may pile up during seeking and may still get -- sent when the user is done seeking, so we need to throw away -- identical seeks - if mp.get_property("pause") == "no" then + if mp.get_property("pause") == "no" and user_opts.mouse_seek_pause then state.playingWhilstSeeking = true mp.commandv("cycle", "pause") end