Hi,
I wanted to see if other people have a problem with this: I have a
page with lots (10-20) drags and drops. On IE (running under wine
emulation, as I only have Linux), things are fairly quick. On
Firefox, drags are painfully slow. It takes a noticeable amount of
time to 1) get the handle for the drag, and start it 2) do the drag
itself. What might be causing the slowness? I can think of a couple
of things, but have no idea which might be correct. Too many elements
in the dragged element? Too many drop targets? I coded up a little
system to do an "outline only" drag:
function myStartEffect(element) {
dimensions = element.getDimensions();
t = element.childrenWithClassName(''task'')[0];
new Element.hide(t);
element.style.width = dimensions.width + ''px'';
element.style.height = dimensions.height + ''px'';
Element.addClassName(element, ''outline'');
}
function myEndEffect(element) {
element.style.width = '''';
element.style.height = '''';
Element.removeClassName(element, ''outline'');
t = element.childrenWithClassName(''task'')[0];
new Element.show(t);
}
....
dragoptions.starteffect = myStartEffect;
dragoptions.endeffect = myEndEffect;
....
dropoptions[''onDrop''] = function (src, dest) {
myEndEffect(src);
...
Which seems to help a little bit, but... Firefox is still not very
fast. This is scriptaculous shipping with Rails 1.2, by the way...
Thankyou,
--
David N. Welton
- http://www.dedasys.com/davidw/
Linux, Open Source Consulting
- http://www.dedasys.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---