From 518e0b73204184629c8a3d387ef516ae5511c72f Mon Sep 17 00:00:00 2001 From: ChrisK2 Date: Tue, 27 May 2014 22:52:34 +0200 Subject: osc: extend hitbox of seekbars to include gap should make usage a bit easy Fixes #810 --- player/lua/osc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index cf5f848d12..4bb884167c 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -296,7 +296,7 @@ function register_element(type, x, y, an, w, h, style, content, eventresponder, local hitbox if type == "slider" then -- if it's a slider, cut the border and gap off, as those aren't of interest for eventhandling - local fill_offset = metainfo.slider.border + metainfo.slider.gap + local fill_offset = metainfo.slider.border hitbox = {x1 = bX1 + fill_offset, y1 = bY1 + fill_offset, x2 = bX2 - fill_offset, y2 = bY2 - fill_offset} else hitbox = {x1 = bX1, y1 = bY1, x2 = bX2, y2 = bY2} -- cgit v1.2.3