fix: timeline dragging not released when file is closed

closes #211
This commit is contained in:
tomasklaen
2022-09-18 13:14:12 +02:00
parent d1f2f70227
commit 852b724b6a

View File

@@ -2624,6 +2624,9 @@ function Timeline:init()
self.size_min_override = options.timeline_start_hidden and 0 or nil
self.font_size = 0
self.top_border = options.timeline_border
-- Release any dragging when file gets unloaded
mp.register_event('end-file', function() self.pressed = false end)
end
function Timeline:get_visibility()