|
@ -67,6 +67,11 @@ |
|
|
// Mark it non-segmented if the target is too high. This prevents a clunky progress bar, |
|
|
// Mark it non-segmented if the target is too high. This prevents a clunky progress bar, |
|
|
// or a browser freeze if you set the target very high. |
|
|
// or a browser freeze if you set the target very high. |
|
|
nonSegmented = alwaysSmooth || (target >= 60); |
|
|
nonSegmented = alwaysSmooth || (target >= 60); |
|
|
|
|
|
|
|
|
|
|
|
if (!nonSegmented) { |
|
|
|
|
|
ons = Math.round(ons); |
|
|
|
|
|
offs = Math.round(offs); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
offClass = "none"; |
|
|
offClass = "none"; |
|
|
nonSegmented = alwaysSmooth; |
|
|
nonSegmented = alwaysSmooth; |
|
|