googlearchive / paper-slider

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

Needs to be a way to 2-way bind to a value that updates immediately #19

Closed sorvell closed 10 years ago

sorvell commented 10 years ago

The value property updates after the user is done interacting with the slider while the immediateValue updates as the slider is sliding.

Sometimes one wants to bind go this immediate value. For example binding a paper-input value to a slider. In this case the binding should be 2-way: when the input changes, the slider should update. Unfortunately, if immediateValue is set the slider does not render correctly. The thumb and progress become disconnected.

We can either fix immediateValue so it can be set; or alternatively, perhaps rather than having 2 separate values, we could have an option to update value immediately.