fix: speed not inheriting timeline visibility

This commit is contained in:
tomasklaen
2022-09-27 18:26:41 +02:00
parent 18f5660a41
commit 740c775998

View File

@@ -2269,7 +2269,7 @@ function Speed:get_visibility()
-- We force inherit, because I want to see speed value when peeking timeline
local this_visibility = Element.get_visibility(self)
return Elements.timeline.proximity_raw ~= 0
and math.max(Elements.timeline.proximity, this_visibility) or this_visibility
and math.max(Elements.timeline:get_visibility(), this_visibility) or this_visibility
end
function Speed:on_coordinates()