mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2024-11-14 18:19:02 +01:00
Integrated Giulio's comments in previous commit
This commit is contained in:
parent
4a869380b0
commit
ee163ba2e9
File diff suppressed because one or more lines are too long
@ -63,7 +63,7 @@ Clipperz.PM.UI.Components.Cards.EditClass = React.createClass({
|
||||
//============================================================================
|
||||
|
||||
fieldMoveStart: function(aFieldReference, aFieldPosition, touchStyle) {
|
||||
MochiKit.Async.callLater(0.1, MochiKit.Base.bind(this.setState, this, {
|
||||
MochiKit.Async.callLater(0.1, MochiKit.Base.method(this, 'setState', {
|
||||
'draggedFieldReference': aFieldReference,
|
||||
'fromFieldPosition': aFieldPosition,
|
||||
'touchStyle': touchStyle,
|
||||
@ -125,17 +125,14 @@ console.log("DROP"); //, anEvent);
|
||||
//console.log("CANCELLED FIELD MOVE");
|
||||
}
|
||||
|
||||
// Delayed because
|
||||
// - A quick touch would prevent the state to update correctly otherwise (don't know why)
|
||||
// - It takes a little time to actually move the field
|
||||
MochiKit.Async.callLater(0.1, MochiKit.Base.bind(function () {
|
||||
this.setState({
|
||||
// Delayed because a quick touch would prevent the state to update correctly otherwise (don't know why)
|
||||
MochiKit.Async.callLater(0.1, MochiKit.Base.method(this, 'setState', {
|
||||
'draggedFieldReference': null,
|
||||
'fromFieldPosition': -1,
|
||||
'toFieldPosition': -1,
|
||||
'dropPosition': -1
|
||||
});
|
||||
}, this));
|
||||
})
|
||||
);
|
||||
},
|
||||
|
||||
//............................................................................
|
||||
|
Loading…
Reference in New Issue
Block a user