Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Jul 15, 2014
1 parent bd7b74e commit 2b11335
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paper-slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@
positionKnob: function(ratio) {
this._ratio = ratio;
this.immediateValue = this.calcStep(this.calcKnobPosition()) || 0;
this.$.sliderKnob.style.left =
(this.snaps ? this.calcRatio(this.immediateValue) : this._ratio) * 100 + '%';
if (this.snaps) {
this._ratio = this.calcRatio(this.immediateValue);
}
this.$.sliderKnob.style.left = this._ratio * 100 + '%';
},

immediateValueChanged: function() {
Expand Down

0 comments on commit 2b11335

Please sign in to comment.