Thanks for this, i'll definitely want to include it!

What I want to see too is support for scrolling containers that have
overflow:auto/scroll set. Could this be added?

It should probably search for first parent that has overflow:auto set,
if none is found, scroll the page.

Maybe there should be some options to better control this, like
a scroll: option that take an element (and defaults to body). if you
set scroll:false then no scrolling takes place.

What do you think?

Cheers,
Thomas

Am 10.11.2005 um 22:27 schrieb Gregory Hill:

Ok, here's the best working version I can come up with. There's still a
little bit of choppiness, especially in Opera and Safari.  Mozilla is
pretty smooth, at least on my computer. Someone who knows the draggable
code might know better how to smooth out the jerkiness; I dunno.  It
would be awesome if Thomas could include this in the scriptaculous
library, but I imagine he won't want to add something tested so little
just before a major release. I was able to get this working on IE 5.5 & 6.0, Firefox 1.0.7, Safari 1.3, and Opera 8.5. Scrolling up and left is jerkier than down and right on all of them, and sometimes it renders the
dragging element in the middle of the page instead of where the cursor
is (it flickers back and forth).  Not sure how to correct that.  So,
here's the code, hopefully someone a little more intimately familiar
with scriptaculous can work out the kinks and get it included.

Thanks,
Greg

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to