我无法自由拖动物品

时间:2014-09-01 11:18:41

标签: jquery jquery-ui

我有这个HTML:

<table class="table">
    <tr>
       <th>Logo</th>
       <th>Artical</th>
       <th>News</th>
    </tr>
    <tr id="sortable">
       <td>something</td>
       <td class="ui-state-default">2014 news from our department</td>
       <td class="ui-state-default"></td>
    </tr>
</table>

使用此JavaScript代码允许用户将文本从artical列拖动到新闻列,反之亦然

<script>
        $(function () {
            $("#sortable").sortable();
            $("#sortable").disableSelection();
        });
</script>

问题:从列拖放到其他地方很痛苦,我经常在尝试将项目拖到列上时失败。我应该狙击成功!有谁遇到这个问题?

http://jsfiddle.net/ffz3cphg/

1 个答案:

答案 0 :(得分:0)

您是否尝试过调整scrollSensitivity值?

例如:

$("#sortable").sortable({scrollSensivity:300});

请参阅此post

相关问题