Skip to content

Commit 583faf0

Browse files
committed
Fix timecode hitbox
Currently, the timecode isn't clickable at the seconds position (or the hours position if it's on the right). This fix increases the width of the timecode hitbox, allowing us to click the timecode up until the millisecond position. Do note the hitbox don't dynamically increase or decrease depending on whether milliseconds are shown, so there will be an invisible clickable space beside the timecodes if milliseconds are hidden.
1 parent daef288 commit 583faf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/modernx.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,11 +1630,11 @@ layouts = function ()
16301630

16311631
-- Time
16321632
lo = add_layout("tc_left")
1633-
lo.geometry = {x = 25, y = refY - 90, an = 7, w = 64, h = 20}
1633+
lo.geometry = {x = 25, y = refY - 90, an = 7, w = 120, h = 20}
16341634
lo.style = osc_styles.timecodes
16351635

16361636
lo = add_layout("tc_right")
1637-
lo.geometry = {x = osc_geo.w - 25 , y = refY -90, an = 9, w = 64, h = 20}
1637+
lo.geometry = {x = osc_geo.w - 25 , y = refY - 90, an = 9, w = 120, h = 20}
16381638
lo.style = osc_styles.timecodes
16391639

16401640
-- Cache

0 commit comments

Comments
 (0)