# Scriptaculous - End Drag event exist?

**URL:** <https://www.ruby-forum.com/t/scriptaculous-end-drag-event-exist/108951>\
**Category:** Rails\
**Created:** [July 9, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/scriptaculous-end-drag-event-exist/108951 "2007-07-09T21:32:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quantass](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/q/cab0a1/32.png) [@quantass](https://www.ruby-forum.com/u/quantass)\
**Post date:** [July 9, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/scriptaculous-end-drag-event-exist/108951/1 "2007-07-09T21:32:48Z")

</div>

Im using Scriptaculous to perform sorting on my objects using:  
Sortable.create(). Im able to drag drop the item but i have because i  
have an onClick event for each item that is draggable, the click event  
is called once the user does a mouse up event. I want to prevent this  
but i require the scriptaculous event which informs me when the drag has  
ended. I noticed an endDrag() for Draggables but dont see how to get  
access to this callback function.

Any ideas?
