mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Resizable, Slider: Don't use .hover().
This commit is contained in:
parent
eccd622a4d
commit
5455b1599f
6
ui/jquery.ui.resizable.js
vendored
6
ui/jquery.ui.resizable.js
vendored
@ -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");
|
||||
|
5
ui/jquery.ui.slider.js
vendored
5
ui/jquery.ui.slider.js
vendored
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user