stop

Triggered when dragging stops.

Parameters

NameTypeDescription
e {object} event data
mousePosition {object} Current mouse position as { x, y } object.

Examples

sample

    
 <style>
 .element { border: 1px solid #999; width: 300px; height: 200px; cursor: move; text-align: center; background-color: #DDD; }
 </style>
 <div id="element" class="element gj-unselectable">
   drag me
 </div>
 <script>
     $('#element').draggable({
         stop: function (e, offset) {
             $('body').append('<div>The stop event is fired.</div>');
         }
     });
 </script>