Skip to content

Commit

Permalink
Disabled slider handle cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
abpetkov committed Apr 26, 2014
1 parent df55f3e commit 9b0f04d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ Powerange.prototype.disable = function() {
this.mouse.unbind();
this.touch.unbind();
this.slider.style.opacity = this.options.disableOpacity;
classes(this.handle).add('range-disabled');
}
};

Expand Down
8 changes: 8 additions & 0 deletions lib/powerange.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,12 @@
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

/**
* Style for handle cursor on disabled slider.
*/

.range-disabled {
cursor: default;
}

0 comments on commit 9b0f04d

Please sign in to comment.