l2t-paper-slider icon indicating copy to clipboard operation
l2t-paper-slider copied to clipboard

Auto-progress changes are ineffective

Open vtellier opened this issue 8 years ago • 2 comments
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>

vtellier avatar Oct 17 '17 07:10 vtellier

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? 🙂

Link2Twenty avatar Oct 17 '17 08:10 Link2Twenty

I'd love to do that, but probably not today unfortunately.

vtellier avatar Oct 17 '17 09:10 vtellier