jQuery ui draggable elements not 'draggable' outside of scrolling div

前端 未结 2 464
没有蜡笔的小新
没有蜡笔的小新 2020-12-02 17:21

I have many elements (floating href tags) in a div with a set height/width, with scroll set to overflow: auto in the CSS.

This is the structure of the d

2条回答
  •  孤城傲影
    2020-12-02 17:40

    In my case, this solved it for me and works perfectly!

    UPDATED

    $(".amigo").draggable({
                revert: "invalid" ,
                helper: function(){
                    $copy = $(this).clone();
                    return $copy;},
                appendTo: 'body',
                scroll: false
            });
    

提交回复
热议问题