Skip to content

Commit

Permalink
paper-slider - fix text selection on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Feb 17, 2017
1 parent ce87b3a commit 7ec7a7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addon/components/paper-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ export default Component.extend(FocusableMixin, ColorMixin, {
return this.$('.md-track-container').get(0).getBoundingClientRect();
},

// fix to remove content selection highlight on safari
mouseDown(event) {
event.preventDefault();
},

click(event) {
if (this.get('disabled')) {
return;
Expand Down

0 comments on commit 7ec7a7b

Please sign in to comment.