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

Commit

Permalink
Fire manual-change in keydown
Browse files Browse the repository at this point in the history
…instead of in increment/decrement.
  • Loading branch information
jeffposnick committed Jul 17, 2014
1 parent bfd21d9 commit 63ebd41
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions paper-slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,10 @@

increment: function() {
this.value = this.clampValue(this.value + this.step);
this.fire('manual-change');
},

decrement: function() {
this.value = this.clampValue(this.value - this.step);
this.fire('manual-change');
},

keydown: function(e) {
Expand All @@ -301,6 +299,7 @@
} else if (c === 39) {
this.increment();
}
this.fire('manual-change');
}

});
Expand Down

0 comments on commit 63ebd41

Please sign in to comment.