mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Fixed comments about events.
This commit is contained in:
parent
247c29ee93
commit
66d11338a9
6
ui/jquery.ui.draggable.js
vendored
6
ui/jquery.ui.draggable.js
vendored
@ -165,7 +165,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
|||||||
|
|
||||||
this._preparePosition( event );
|
this._preparePosition( event );
|
||||||
|
|
||||||
// If user stops propagation, leave helper there ( if there's one ), disallow any CSS changes
|
// If user cancels start, don't allow dragging
|
||||||
if ( this._trigger( "start", event, this._uiHash() ) === false ) {
|
if ( this._trigger( "start", event, this._uiHash() ) === false ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
|||||||
_move: function( event ) {
|
_move: function( event ) {
|
||||||
this._preparePosition( event );
|
this._preparePosition( event );
|
||||||
|
|
||||||
// If user stops propagation, leave helper there ( if there's one ), disallow any CSS changes
|
// If user cancels drag, don't move the element
|
||||||
if ( this._trigger( "drag", event, this._uiHash() ) === false ) {
|
if ( this._trigger( "drag", event, this._uiHash() ) === false ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -191,7 +191,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
|||||||
_stop: function( event ) {
|
_stop: function( event ) {
|
||||||
this._preparePosition( event );
|
this._preparePosition( event );
|
||||||
|
|
||||||
// If user stops propagation, leave helper there, disallow any CSS changes
|
// If user cancels stop, leave helper there, disallow any CSS changes
|
||||||
if ( this._trigger( "stop", event, this._uiHash() ) === false ) {
|
if ( this._trigger( "stop", event, this._uiHash() ) === false ) {
|
||||||
this._setCss( event );
|
this._setCss( event );
|
||||||
if ( this.options.helper ) {
|
if ( this.options.helper ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user