Skip to content

Commit

Permalink
fix slider on android browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Mar 8, 2017
1 parent bd9a4be commit 56b84cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon/components/paper-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ export default Component.extend(FocusableMixin, ColorMixin, {
return;
}

this.setValueFromEvent(event.pageX || event.clientX);
let x = event.pageX || event.clientX;
if (x !== undefined) {
this.setValueFromEvent(x);
}
},

setValueFromEvent(value) {
Expand Down

0 comments on commit 56b84cf

Please sign in to comment.