googlearchive / paper-slider

A slider à la Material Design
16 stars 18 forks source link

Add another event to listen for knob dragging #9

Closed yashafromrussia closed 9 years ago

yashafromrussia commented 9 years ago

We're using Polymer's paper-slider as a seek bar in a custom UI to control

$(self.$.audioPlayer).on('timeupdate', function() {
  self.$.playerProgress.value = (this.currentTime / this.duration) * 100;

  if (self.$.playerProgress.value === 100)
    self.$.playBtn.iconSrc = "/assets/svg-icons/play.svg";
});

That being said, we also want to change

My proposal is to add another event to paper-slider which would fire when the knob is being dragged.

If you have any suggestion about the implementation of this behaviour without adding an additional event to paper-slider, please let me know. Much appreciated.

yashafromrussia commented 9 years ago

If I'm not mistaken, 7cc6f1d1ae already implements manual-change event. I will clone the master branch and test.

yashafromrussia commented 9 years ago

Just confirming that using manual-change event (master branch) works perfectly for this use case.

Thank you for developing such a wonderful framework!