0

I facing problem, when i drag drop outer video div into timeline then it's not longer draggable

https://fiddle.jshell.net/surjitsidhu/pzmzc2z7/2/show/

https://fiddle.jshell.net/surjitsidhu/pzmzc2z7/2

I'm not sure, why it's freezing

Surjit Sidhu
  • 377
  • 4
  • 14
  • Possible duplicate of [When I make a draggable clone and drop it in a droppable I cannot drag it again](http://stackoverflow.com/questions/867469/when-i-make-a-draggable-clone-and-drop-it-in-a-droppable-i-cannot-drag-it-again) – Parminder Singh Dec 07 '16 at 12:50

1 Answers1

1

Your code seems missing draggable.

See this code:

if( dropped.attr( 'id' ) === 'galleryItem' ) {
            //alert("dropped if");
            var newEl = $( dropped ).clone().appendTo( droppedOn );

            newEl.removeAttr( 'id' ).removeClass( 'thumb' ).html( '<div style="background:red;width:400px;height:50px;"></div>' ).addClass( 'layer-item' );
            newEl.removeClass( 'dragging' );

            newEl.addClass("item");
            $(".item").removeClass("ui-draggable draggable");
            $(".item").draggable({
                cursor: 'move',     
            });

        } else {
            //alert("dropped else");
            $( dropped ).detach().css( { top: 0, left: ui.helper.position().left - 160 } ).appendTo( droppedOn );
        }
Parminder Singh
  • 351
  • 1
  • 10