Drag'n drop fix when dropping outside the list
This commit is contained in:
parent
6a0ba8acfe
commit
1c1e0398e7
1 changed files with 4 additions and 1 deletions
|
@ -51,7 +51,10 @@
|
|||
ns.PreviewFilmController.prototype.onDrop_ = function( event, ui ) {
|
||||
var frameId1 = parseInt($(event.srcElement).data("tile-number"), 10);
|
||||
var frameId2 = parseInt($(event.target).data("tile-number"), 10);
|
||||
|
||||
|
||||
if(isNaN(frameId1) || isNaN(frameId2)) {
|
||||
return;
|
||||
}
|
||||
this.framesheet.swapFrames(frameId1, frameId2);
|
||||
|
||||
// TODO(vincz): deprecate
|
||||
|
|
Loading…
Reference in a new issue