You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: avoid duplicate click handlers accumulating in _moveManual #53
Each call to _moveManual in l2t-paper-slider.js attaches a new anonymous click listener to every .slider__dot element via dotElems[i].addEventListener('click', ...). Because anonymous functions cannot be removed with removeEventListener, every subsequent call (e.g. from attached's setTimeout and from _reInit's setTimeout triggered by _countSlides) stacks an additional handler on each dot. Over time this causes movePos to be called multiple times per click.
Suggested fix
Replace per-dot anonymous listeners with a single delegated listener stored on the instance, added only once:
Activity
fix: avoid duplicate click handlers accumulating in _moveManual
fix: avoid duplicate click handlers accumulating in _moveManual
javier-godoy commentedon May 11, 2026
Fix released in v3.0.2