mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Drag'n drop fix when dropping outside the list
This commit is contained in:
parent
6a0ba8acfe
commit
1c1e0398e7
@ -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 New Issue
Block a user