mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Interaction: make _start not have to return true (an explicit return false will still cancel)
This commit is contained in:
parent
7236f2935a
commit
d056a9ac2f
2
ui/jquery.ui.draggable.js
vendored
2
ui/jquery.ui.draggable.js
vendored
@ -104,8 +104,6 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
||||
|
||||
this._blockFrames();
|
||||
this._setCss();
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
_move: function( event, pointerPosition ) {
|
||||
|
2
ui/jquery.ui.interaction.js
vendored
2
ui/jquery.ui.interaction.js
vendored
@ -29,7 +29,7 @@ $.widget( "ui.interaction", {
|
||||
return false;
|
||||
}
|
||||
|
||||
started = this._start( event, pointerPosition );
|
||||
started = ( this._start( event, pointerPosition ) !== false );
|
||||
if ( started ) {
|
||||
interaction.started = true;
|
||||
interaction.hooks[ hook ].handle( this );
|
||||
|
Loading…
Reference in New Issue
Block a user