{"action":"created","issue":{"url":"https://api.github.com/repos/marceljuenemann/angular-drag-and-drop-lists/issues/93","labels_url":"https://api.github.com/repos/marceljuenemann/angular-drag-and-drop-lists/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/marceljuenemann/angular-drag-and-drop-lists/issues/93/comments","events_url":"https://api.github.com/repos/marceljuenemann/angular-drag-and-drop-lists/issues/93/events","html_url":"https://github.com/marceljuenemann/angular-drag-and-drop-lists/issues/93","id":95981800,"number":93,"title":"Include origin and destination of item being dragged in dnd-drop callback.","user":{"login":"gurgus","id":2045206,"avatar_url":"https://avatars.githubusercontent.com/u/2045206?v=3","gravatar_id":"","url":"https://api.github.com/users/gurgus","html_url":"https://github.com/gurgus","followers_url":"https://api.github.com/users/gurgus/followers","following_url":"https://api.github.com/users/gurgus/following{/other_user}","gists_url":"https://api.github.com/users/gurgus/gists{/gist_id}","starred_url":"https://api.github.com/users/gurgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurgus/subscriptions","organizations_url":"https://api.github.com/users/gurgus/orgs","repos_url":"https://api.github.com/users/gurgus/repos","events_url":"https://api.github.com/users/gurgus/events{/privacy}","received_events_url":"https://api.github.com/users/gurgus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marceljuenemann/angular-drag-and-drop-lists/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-20T04:06:51Z","updated_at":"2015-07-24T00:28:19Z","closed_at":"2015-07-23T09:44:37Z","body":"I imagine this is a feature request, rather than an issue.\r\n\r\nBasically I have the use case of the following:\r\n* I have two lists (A and B)\r\n* I want to be able to drag items in list A to list B\r\n* I want to be able to drag items in list B to list A\r\n* I want to be able to reorder items in list A\r\n* I want to be able to reorder items in list B\r\n* For each of the 4 drag operations I have mentioned, I want to know where the element is being dragged from and where it is being dropped to\r\n\r\nFor the reordering operations, this is easy to detect with no changes to the angular-drag-and-drop-lists library. You can simply iterate over the list in the dnd-drop callback and if *item* is already in the list, then you know that the source list and destination list are the same. The tricky part is detecting that the source and destination list are different.\r\n\r\nI imagine this could be made possible by modifying the dnd-drop callback to include this information.\r\n\r\nIf anyone has got any ideas I'd be keen to hear!\r\n\r\n-Dave"},"comment":{"url":"https://api.github.com/repos/marceljuenemann/angular-drag-and-drop-lists/issues/comments/124277071","html_url":"https://github.com/marceljuenemann/angular-drag-and-drop-lists/issues/93#issuecomment-124277071","issue_url":"https://api.github.com/repos/marceljuenemann/angular-drag-and-drop-lists/issues/93","id":124277071,"user":{"login":"marceljuenemann","id":2447596,"avatar_url":"https://avatars.githubusercontent.com/u/2447596?v=3","gravatar_id":"","url":"https://api.github.com/users/marceljuenemann","html_url":"https://github.com/marceljuenemann","followers_url":"https://api.github.com/users/marceljuenemann/followers","following_url":"https://api.github.com/users/marceljuenemann/following{/other_user}","gists_url":"https://api.github.com/users/marceljuenemann/gists{/gist_id}","starred_url":"https://api.github.com/users/marceljuenemann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceljuenemann/subscriptions","organizations_url":"https://api.github.com/users/marceljuenemann/orgs","repos_url":"https://api.github.com/users/marceljuenemann/repos","events_url":"https://api.github.com/users/marceljuenemann/events{/privacy}","received_events_url":"https://api.github.com/users/marceljuenemann/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T00:28:19Z","updated_at":"2015-07-24T00:28:19Z","body":"I still don't see good use cases for this. The use cases given by @dowlingw are already possible to implement with dnd-type, without any logic at all.\r\n\r\nI created [http://plnkr.co/edit/imXY0yXgl5OryBo3J50V?p=preview](this plunkr), maybe that helps. It will output stuff like \"Item A1 was dragged from list C to list B\" to the console."}}