jQuery UI排序滚动帮助器元素抵消Firefox的问题 [英] jQuery UI sortable scroll helper element offset Firefox issue
问题描述
从鼠标指针向下滚动,这使得它不可能看到你最初开始拖动哪个项目。
如何解决这个问题或者解决这个问题?如果没有修复什么是一个非常好的替代可拖动插件?
以下是我可以排序的初始化参数。
$(#sortable)。sortable({placeholder:'ui-state-highlight'});
$(#sortable)。disableSelection();
我看到这个问题,并能解决它通过删除我的网页上的一个包含div的CSS规则位置:相对。另请参阅: http: //forum.jquery.com/topic/sortable-offset-when-element-is-dragged-and-page-scrolled-down-ff
I have a problem with a jQuery UI 1.7.2 sortable list in Firefox 3.6, IE7-8 work fine. When I'm scrolled down a bit, the helper element seems to have an offset of the same height that I'm scrolled down from the mouse pointer which makes it impossible to see which item you originally started dragging. How do I fix this or work around the issue? If there is no fix what is a really good alternative drag-able plugin?
Here are my initialization parameters for the sortable.
$("#sortable").sortable( {placeholder: 'ui-state-highlight' } );
$("#sortable").disableSelection();
I was seeing this issue and was able to solve it by removing the css rule position:relative from one of the containing divs on my page. See also: http://forum.jquery.com/topic/sortable-offset-when-element-is-dragged-and-page-scrolled-down-ff
这篇关于jQuery UI排序滚动帮助器元素抵消Firefox的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!