문제

I'm trying to have a list "ul" that scrolls thanks to the fact that the elements are draggable

[1]Fiddle here: http://jsfiddle.net/Morgorth/b68fn/

However as you can see it doesn't not work.I've seen many people having issues while trying to drag the element into another list, but I don't want that complicated. It seems to me the scroll property of draggable is there for that, isn't ?

$(".account_line").draggable({
        containment: '#TreeHierarchy',
        cursor: 'move',
        snap: '.account_line',
        helper: 'clone',
        scroll:true,
        scrollSensitivity:100
})

What am I doing wrong ?

도움이 되었습니까?

해결책

Try adding position:relative to #TreeContainer . Updated Demo: http://jsfiddle.net/lotusgodkk/b68fn/1/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top