UI可排序公差选项未按预期工作

UI可排序公差选项未按预期工作

本文介绍了jQuery UI可排序公差选项未按预期工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是tolerance选项的来自jQuery UI文档的部分:

相交:可拖动对象与可放置对象至少重叠50%

intersect: draggable overlaps the droppable at least 50%

默认值为intersect,但是如果鼠标指针不在可排序项目上方,则无论拖动的元素至少比另一个可排序项目(我期望的功能)高出50%,都不会发生排序.也在演示页面上发生(上面链接)

The default is intersect, but if the mouse pointer is not above the sortable items, the sort does not happen, no matter that the dragged element is at least 50% over another sortable item (the functionality I expect) This happens on the demo page as well (linked above)

这是jQuery UI中的错误,还是我理解错了?

Is this a bug in jQuery UI, or am I understanding it wrong?

推荐答案

这完全与您在IE9,FF11和Chrome18中所述的相同.

This happens exactly as you described in IE9, FF11 and Chrome18.

当鼠标至少在50%以上时,相交会重叠.
我认为这是不正确的文档.

Intersect overlaps when mouse is at least 50% above.
I think this is the documentation who is not correct.

我在JQuery Bugtracker中没有发现与此相关的错误.

I found no bug related to this in JQuery Bugtracker.

这篇关于jQuery UI可排序公差选项未按预期工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 13:58