l2t-paper-slider
l2t-paper-slider copied to clipboard
Auto-progress changes are ineffective
trafficstars
Hi,
First thanks a lot for this component that is as simple as effective!
I would love to add "player-like" buttons under my slides so the user can stop and start the slider.
To do so I bound a play boolean attribute on the autoProgress property, but it was ineffective:
<l2t-paper-slider total-slides="{{pages.length}}" slide-duration="3" auto-progress$="[[play]]">
<!-- my pages ... -->
</l2t-paper-slider>
My current function only looks at that attribute when once in attach and then calls this function #L348
I suppose what we need is an observer on autoProgress that can start and stop the setInterval.
I'll have to have a think unless you wanna try patching it? 🙂
I'd love to do that, but probably not today unfortunately.