Ooh, that's a good idea about the parent element; I'll have to see
what's possible there.  We could provide the option to turn off
scrolling or specify which element to scroll, but by default I think it
should do the nearest parent element that is scrollable.  That seems the
most intuitive to me.  I'll see what I can do.

Greg

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Thomas Fuchs
Sent: Friday, November 11, 2005 2:49 AM
To: [email protected]
Subject: Re: [Rails-spinoffs] Drag & Scroll

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
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to