jQuery UI, Draggable, Droppable, Auto Scroll

前端 未结 2 2107
耶瑟儿~
耶瑟儿~ 2021-02-09 11:06

I have a set of droppable li elements that accepts a draggable icon. The list of items is in a scrollable div element. I put together a simple example here: http://www.nerdydork

2条回答
  •  耶瑟儿~
    2021-02-09 11:29

    Setting the "refreshPositions: true" option for the draggable will cause jQuery to recalculate the offsets on every mouse event. That should fix your problem.

提交回复
热议问题