Fix bug when period capping on 100

Co-authored-by: Fabian Wunsch <42294590+fabi321@users.noreply.github.com>
This commit is contained in:
Hans5958 2022-04-16 15:34:05 +07:00
parent ab573d11b0
commit 35bedfac34

View file

@ -523,10 +523,10 @@ function initPeriodGroups() {
periodVisibilityEl.id = "periodVisibility" + index
periodVariationEl.id = "periodVariation" + index
startPeriodEl.value = start
endPeriodEl.value = end
startPeriodEl.max = variationsConfig[variation].versions.length - 1
endPeriodEl.max = variationsConfig[variation].versions.length - 1
startPeriodEl.value = start
endPeriodEl.value = end
startPeriodEl.addEventListener('input', event => {
timelineSlider.value = parseInt(event.target.value)