# mouseDragged on List Component

**URL:** <https://forum.inductiveautomation.com/t/mousedragged-on-list-component/43945>\
**Category:** Ignition\
**Tags:** ignition80, scripting, vision\
**Created:** [March 1, 2021, 3:00pm UTC](https://forum.inductiveautomation.com/t/mousedragged-on-list-component/43945 "2021-03-01T15:00:18Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 5, 2021, 4:59pm UTC](https://forum.inductiveautomation.com/t/mousedragged-on-list-component/43945/9 "2021-03-05T16:59:09Z")

</div>

Okay, so I dug into this and it actually turned out a bit simpler than I thought.

> [@Drag and drop to list component](http://forum.inductiveautomation.com/t/drag-and-drop-to-list-component/44077/16):
>
> Perhaps you were correct? This turned out to be a bit simpler than I was originally thinking. Not trivial, but not really painful either. Add an extension function to your list component, I called mine addDropListener. Then in the script add the following script: from java.awt.dnd import DropTargetAdapter, DropTarget from com.inductiveautomation.ignition.client.tags.dnd import ListOfQualifiedPath class customDragDropListener(DropTargetAdapter): \_comp = None def \_\_init\_\_(self,comp): D…

---

_[View the full topic](https://forum.inductiveautomation.com/t/mousedragged-on-list-component/43945)._
