Hi Norbert! Thank you for your very useful investigations! When I said Yahoo, I actually meant the Yahoo Mail application. Anyway, YUI is a very useful resource, I dived a bit into the code but not enough, anyway, it seems that here too, the drop targets are somehow cached (there is a option for disabling the cache). I will make a third example with YUI and check how it will perfom.
2006/11/28, Norbert <[EMAIL PROTECTED]>:
I'm pleased to see you are investigating the different options. A few months ago I developed a homebrew version of Scriptaculous drag and drop in which I had a number of nested droppables (anything between 10 and 30). I am therefore quite familiar with Scriptaculous slow dragging performance. Sometimes, you had the feeling the whole browser was about to crash. At the time I wasn't sure whether the poor performance was inherent in the way Scriptaculous worked or whether it was my code's fault. I'm glad to see it wasn't my fault after all! It must be noted, however, that the initial lag seen in Interface when there are a lot of droppables is probably more alarming than what happens with Scriptaculous. I serioulsy doubt users will have the initiative or the patience to wait for a few seconds to see if the draggable reacts. Knowing how users are, I can imagine them making things worse by re-clicking and re-dragging while they wait for something to happen. I was not familiar with the way Yahoo does its drag and drop, but I've taken a look at their documentation and examples ( http://developer.yahoo.com/yui/dragdrop/ http://developer.yahoo.com/yui/dragdrop/ ) and have noticed they have two methods of determining how drags and drops interact. I am not sure whether each method uses a different way of wiring the draggables and droppables, but the differences seen in their drag and drop events (interesting moments is how they call them in their documentation) seems to suggest so. Their two modes are: 1) Point Mode - Considers that a draggable is on top of the droppable only if the dragging mouse cursor is on top of the droppable. 2) Intersect Mode - Considers that a draggable is on top of the droppable if any of the draggable area is overlappig the droppable area. The following examples show the difference between the two: http://developer.yahoo.com/yui/examples/dragdrop/proxy.html?mode=dist http://developer.yahoo.com/yui/examples/dragdrop/proxy.html?mode=dist http://developer.yahoo.com/yui/examples/dragdrop/list.html?mode=dist http://developer.yahoo.com/yui/examples/dragdrop/list.html?mode=dist (notice how the draggable lags when moved fast in Intersect Mode). http://developer.yahoo.com/yui/examples/dragdrop/targetable.html?mode=dist http://developer.yahoo.com/yui/examples/dragdrop/targetable.html?mode=dist (notice how the applicable droppables are highlighted at the beginning of the drag in both cases) One thing I have not been able to see is the (-5px, -5px) mouse cursor displacement mentioned by Paul. In any case, if three modes Paul talked about in his post are finally implemented in Iterface, I would definitely give the developer the chance to set which of the modes he wants to use. Having the mode change automatically according to the number of droppables can potentially lead to inconsistencies in the user interface: a) Sometimes droppables marked at the beginning of the drag, sometimes they are not. b) Sometimes the draggable is offset with regards to the mouse, sometimes it is not. If I had to sacrifice something at this stage it would definitely be the nice effects (as much as I like them). Although a cool user interface is a good thing to have, it is even more important for the experience to be responsive. If it comes to it, I rather drag a grey square representing the draggable than wait for a few seconds for my semi-transparent draggable clone to lag behind the cursor. As a final word, I would like to congratulate you on the hard work your are putting in! Thanks! -- View this message in context: http://www.nabble.com/Interface-Draggables-Droppables%3A-New-approach-tf2712248.html#a7578335 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
-- Paul Bakaus Web Developer ------------------------ Hildastr. 35 79102 Freiburg
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
