eve*_*zon 110 scroll jquery-ui touch jquery-ui-sortable ipad
如何在iPad和其他触摸设备上使用jQuery-UI可排序功能?
http://jqueryui.com/demos/sortable/
我试图使用event.preventDefault();,event.cancelBubble=true;和event.stopPropagation();,touchmove以及scroll事件,但结果是页面不再滚动.
有任何想法吗?
eve*_*zon 214
找到了解决方案(直到现在才用iPad测试过!)!
http://furf.com/exp/touch-punch/sortable.html
为了使sortable移动工作。我使用这样的触摸打孔:
$("#target").sortable({
// option: 'value1',
// otherOption: 'value2',
});
$("#target").disableSelection();
Run Code Online (Sandbox Code Playgroud)
disableSelection();创建可排序实例后注意添加。
| 归档时间: |
|
| 查看次数: |
59976 次 |
| 最近记录: |