Skip to content

Commit

Permalink
Fix timecode hitbox
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dexeonify committed Dec 30, 2021
1 parent daef288 commit 583faf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/modernx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1630,11 +1630,11 @@ layouts = function ()

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

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

-- Cache
Expand Down

0 comments on commit 583faf0

Please sign in to comment.