summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/osc.rst1
-rw-r--r--player/lua/osc.lua4
2 files changed, 5 insertions, 0 deletions
diff --git a/DOCS/man/osc.rst b/DOCS/man/osc.rst
index 1653e0cc7b..352d28f180 100644
--- a/DOCS/man/osc.rst
+++ b/DOCS/man/osc.rst
@@ -85,6 +85,7 @@ seekbar
============= ================================================
left-click seek to position
+ mouse wheel seek forward/backward
============= ================================================
time left
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 0126d4da31..98e8558a15 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -2046,6 +2046,10 @@ function osc_init()
"absolute-percent", "exact") end
ne.eventresponder["reset"] =
function (element) element.state.lastseek = nil end
+ ne.eventresponder["wheel_up_press"] =
+ function () mp.commandv("osd-auto", "seek", 10) end
+ ne.eventresponder["wheel_down_press"] =
+ function () mp.commandv("osd-auto", "seek", -10) end
-- tc_left (current pos)