I was using a debug div to see what's going on behind the scenes in
IE6 (simple empty div id="debug", then filling it with: $
('debug').innerHTML += whatever... from different functions in
dragdrop.js), when I noticed that if there was output to the debug
div, the speed of dragging in IE6 is as good as FF and Opera.
Can someone please explain this? In theory the speed of dragging
should be a tiny bit slower, as text is outputted to the screen and
displayed by the browser. But in fact the speed in IE6 is actually a
lot faster, equal to the speed in FF and Opera! And it works even if
the div is with style="display:none;" !
Perhaps IE6 needs a small delay somewhere to maintain the proper order
of function calls or to break out of some kind of internal loops?..
Anyway, I came up with this really ugly speedfix for IE6 (and
maybe7?) :
1. Make a div anywhere on the page with id="something" and
style="display:none;" could be hard-coded or created with js only when
the browser is IE.
2. Add " if( $('something') != null ) $('something').innerHTML =
pointer[0]; " to the updateDrag function in dragdrop.js, version
1.7.1_beta3, line 177 (line is empty). This will constantly output the
cursor position while dragging.
This has been tested in FF 2.0.0.4, Opera 9.21 and IE6. Can someone
test it in IE7 and Safari?
I also hope someone can explain why this works...
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---