mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Modified some backCompats to use dragstart rather than dragbeforestart
This commit is contained in:
parent
d2e726d172
commit
7cd8debe73
6
ui/jquery.ui.draggable.js
vendored
6
ui/jquery.ui.draggable.js
vendored
@ -540,7 +540,7 @@ if ( $.uiBackCompat !== false ) {
|
||||
body = $( document.body );
|
||||
|
||||
// Cache original cursor to set back
|
||||
this.element.on( "dragbeforestart", function( e, ui ) {
|
||||
this.element.on( "dragstart", function( e, ui ) {
|
||||
startCursor = body.css( "cursor" );
|
||||
});
|
||||
|
||||
@ -687,7 +687,7 @@ if ( $.uiBackCompat !== false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.element.on( "dragbeforestart", function( e, ui ) {
|
||||
this.element.on( "dragstart", function( e, ui ) {
|
||||
|
||||
// Cache the original opacity of draggable element to reset later
|
||||
originalOpacity = self.dragEl.css( 'opacity' );
|
||||
@ -770,7 +770,7 @@ if ( $.uiBackCompat !== false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.element.on( "dragbeforestart", function( e, ui ) {
|
||||
this.element.on( "dragstart", function( e, ui ) {
|
||||
|
||||
// Cache the original zIndex of draggable element to reset later
|
||||
originalZIndex = self.dragEl.css( 'z-index' );
|
||||
|
Loading…
Reference in New Issue
Block a user