From 5455b1599f438310146acb3f2190335b852280cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 21 May 2012 09:55:56 -0400 Subject: [PATCH] Resizable, Slider: Don't use .hover(). --- ui/jquery.ui.resizable.js | 6 +++--- ui/jquery.ui.slider.js | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js index b4433b61813..6039cf648cb 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/jquery.ui.resizable.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"); diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js index accd3e1891f..c302bfe8b88 100644 --- a/ui/jquery.ui.slider.js +++ b/ui/jquery.ui.slider.js @@ -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() {