Introduction and Draggables
Hi all. I'm Richard Worth. I started using jQuery a couple months ago and love it. I got up to speed very quickly and within days was able to even help others. This is a huge testament to what has been built here, both in terms of the project and the community (the best ever). Nicely done.
I'm very interested in the new UI development work, both as a user and (hopefully) contributor of jQuery. I have been working for a month or two on a tree (nested UL-LI, beautifully sortable, like Ext's) as well as a treeGrid. I've also done my own selectables before (pre-jQuery). So I'm working on adapting my code to use the new UI bits, and I want to help document and test.
I started by documenting draggables on the wiki: <a href="http://docs.jquery.com/UI/Draggables/draggable" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://docs.jquery.com/UI/Draggables/draggable
</a>. This is just what I could figure out from the code. I'm not sure about the following options:
- appendTo
- dropBehaviour
- iframeFix
- preventionTimeout
- wrapHelper
Also, I updated the drag test page: /jquery/plugins/ui/tests/drag.html. See attached for diff/patch. I sorted alphabetically by option name, changed the ids to use names instead of numbers and found a couple of issues along the way. When I found an issue (or didn't know how to demo an option), I added a TODO in the html. Here's the list of issues:
- Some draggables will jump down a bit (sometimes to the bottom of the page) when they are the first dragged after a refresh (or fresh page load). Perhaps related to scroll (auto-scroll) defaulting to true? Also note differences between appendTo and not.
- preventionDistance doesn't seem to work after the first drag. I don't know if this is by design? It seems like it should be delayed each drag.
- When you make the browser wide enough for two columns, dragging a draggable in the right column causes a quick appear-disappear of the horizontal scrollbar.
Also, I looked at the drag_performance test and have an idea about how to improve the efficiency of the intersect test (part of droppables), if no one is working on that already.
- Richard