feat: allow clicking timeline chapter indicators

I don't like this solution, but anything cleaner would probably require converting chapter indicators into individual elements and than managing/updating their positions and sizes in relation to growing timeline, which seems like a lot more work and code, so this'll have to suffice.

closes #370
This commit is contained in:
tomasklaen
2022-11-16 15:23:44 +01:00
parent 682fd81a85
commit 6b2476bace
5 changed files with 79 additions and 25 deletions

View File

@@ -129,8 +129,9 @@ end
---@param name string
function Element:trigger(name, ...)
self:maybe('on_' .. name, ...)
local result = self:maybe('on_' .. name, ...)
request_render()
return result
end
-- Briefly flashes the element for `options.flash_duration` milliseconds.