javascript - jQuery UI's sortable doesn't allow dropping outside of the parent -
if @ the default sortable example, "drop zone" defined mouse pointer within list -- is, if you've drag last item top while mouse pointer stays outside list entire time, "letting go" of item send previous position.
if use "axis" argument (for example set axis: 'y' items can move , down) think x-coordinate of mouse pointer should irrelevant. there easy way set drop zone anywhere on page , item moved position based on pointer's y-coordinate?
are sure sortable system 1 need, sounds of second paragraph dont want make element draggable? ( see http://jqueryui.com/demos/draggable/ )
would better using lock x-axis , let dragged anywhere along y-axis. hope understood correctly, thought.
Comments
Post a Comment