googlearchive / paper-slider

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

New event for manual value changes #7

Closed jeffposnick closed 9 years ago

jeffposnick commented 9 years ago

It would be useful if <paper-slider> fired a new type of event (proposed name: manual-change) when value changes due to manual interaction with the slider.

This new event would allow for

<paper-slider value="{{currentTime}}" on-manual-change="{{handleManulChange}}">

which would invoke the handleManualChange function only when the value changes due to someone interacting with the slider, and not when the bound currentTime variable changes.

This is important if, e.g., the <paper-slider> serves as a media playback scrubber, where it serves the dual-purpose of reflecting the current playback time and allowing someone to seek to a new time manually.

frankiefu commented 9 years ago

fixed by https://github.com/Polymer/paper-slider/pull/8