Skip to content

Commit

Permalink
Resizable, Slider: Don't use .hover().
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed May 21, 2012
1 parent eccd622 commit 5455b15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ui/jquery.ui.resizable.js
Expand Up @@ -171,12 +171,12 @@ $.widget("ui.resizable", $.ui.mouse, {
this._handles.hide();
$(this.element)
.addClass("ui-resizable-autohide")
.hover(function() {
.mouseenter(function() {
if (o.disabled) return;
$(this).removeClass("ui-resizable-autohide");
that._handles.show();
},
function(){
})
.mouseleave(function(){
if (o.disabled) return;
if (!that.resizing) {
$(this).addClass("ui-resizable-autohide");
Expand Down
5 changes: 3 additions & 2 deletions ui/jquery.ui.slider.js
Expand Up @@ -90,11 +90,12 @@ $.widget( "ui.slider", $.ui.mouse, {
.click(function( event ) {
event.preventDefault();
})
.hover(function() {
.mouseenter(function() {
if ( !o.disabled ) {
$( this ).addClass( "ui-state-hover" );
}
}, function() {
})
.mouseleave(function() {
$( this ).removeClass( "ui-state-hover" );
})
.focus(function() {
Expand Down

0 comments on commit 5455b15

Please sign in to comment.