# Drag and drop sortable list items

**URL:** <https://forums.creativeclouddeveloper.com/t/drag-and-drop-sortable-list-items/8753>\
**Category:** Photoshop\
**Tags:** uxp\
**Created:** [November 24, 2024, 6:06pm UTC](https://forums.creativeclouddeveloper.com/t/drag-and-drop-sortable-list-items/8753 "2024-11-24T18:06:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matute](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/matute/32/3713_2.png) [@Matute](https://forums.creativeclouddeveloper.com/u/Matute)\
**Post date:** [November 24, 2024, 6:06pm UTC](https://forums.creativeclouddeveloper.com/t/drag-and-drop-sortable-list-items/8753/1 "2024-11-24T18:06:28Z")

</div>

Hello.  
Not sure if drag and drop is available in PS plugins… I’m trying to create a sortable list, and I make it work.

The elements fire correctly the dragstart event, (however II do not see the element being dragged following the mouse)… but I cant make them fire dragenter, dragleave, dragover, or drop…

Is there a way to create a sortable list?  
I am trying to avoid doing it with mousedown event, because when I tested it i worked “not smoothly”

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [November 24, 2024, 8:16pm UTC](https://forums.creativeclouddeveloper.com/t/drag-and-drop-sortable-list-items/8753/2 "2024-11-24T20:16:52Z")

</div>

Not really related, but this post has a sample code in it. I personally didn’t test it, but based on the context, I understand it should work

> [@Removal of default UXP Drag and Drop ghost image](https://forums.creativeclouddeveloper.com/t/removal-of-default-uxp-drag-and-drop-ghost-image/7982):
>
> Hello - does anyone have any suggestions to remove this default drag mouse cursor in UXP? I’ve been testing the drag and drop functionality for a Photoshop plugin and have found that in the Windows 10 (PS 25.9.0 and PS 24.7.4) implementation the default drag presentation is to show a small white rectangle with the word ‘-\> Move’ next to the mouse cursor and a larger semi-opaque square placeholder that presumably is suppose to display some sort of image in it. A low quality photo of the drag ic…
