Skip to content
Permalink
Browse files

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

  • Loading branch information...
scottgonzalez committed May 21, 2012
1 parent eccd622 commit 5455b1599f438310146acb3f2190335b852280cb
Showing with 6 additions and 5 deletions.
  1. +3 −3 ui/jquery.ui.resizable.js
  2. +3 −2 ui/jquery.ui.slider.js
@@ -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");
@@ -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() {

0 comments on commit 5455b15

Please sign in to comment.
You can’t perform that action at this time.