Resizable, Slider: Don't use .hover().

This commit is contained in:
Scott González 2012-05-21 09:55:56 -04:00
parent eccd622a4d
commit 5455b1599f
2 changed files with 6 additions and 5 deletions

View File

@ -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");

View File

@ -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() {