Closed anuj-adobe closed 3 weeks ago
Sometimes it is observed that hero-slider banner start changing very fastly.
From initial analysis it seems some issue in startProgressBar() method implementation.
startProgressBar()
I can reproduce this issue by commenting following code in setProgressBarPosition()
setProgressBarPosition()
progressBars.forEach((progressBar) => { progressBar.style.maxWidth = `${cardItemRect.width}px`; });
Probably due to some race condition, when startProgressBar is getting called progressBar.style.maxWidth is set to 0 and as a result cardItem width in startProgressBar() is also set to 0, which might be causing this issue.
progressBar.style.maxWidth
Sometimes it is observed that hero-slider banner start changing very fastly.
From initial analysis it seems some issue in
startProgressBar()
method implementation.I can reproduce this issue by commenting following code in
setProgressBarPosition()
Probably due to some race condition, when startProgressBar is getting called
progressBar.style.maxWidth
is set to 0 and as a result cardItem width instartProgressBar()
is also set to 0, which might be causing this issue.