Skip to content

Commit

Permalink
Prevent div by zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Joehuu committed May 22, 2024
1 parent abc4a7c commit db6ac53
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Y=r
[meterScrollbar]
Meter=Image
DynamicVariables=1
Y=(([meterLyricsContainer:H]-[meterScrollbar:H]) * (-#CurrentY# / ([meterLyrics:H]-[meterLyricsContainer:H])))r
Y=(([meterLyricsContainer:H]-[meterScrollbar:H]) * (-#CurrentY# / Max([meterLyrics:H]-[meterLyricsContainer:H], 1)))r
W=#ScrollbarWidth#
X=([meterScrollbarContainer:W] - #ScrollbarWidth#)
H=[measureScrollbarHeight]
Expand Down

0 comments on commit db6ac53

Please sign in to comment.