I cracked the Mozilla issue and I got it working on Safari as well. It's still choppy, but functional and won't auto-add scrollbars. Once I get it to scroll more smoothly I'll submit the code again. Thomas still hasn't said whether he'll want to include it in the source or not, but even if he doesn't, we can provide it as an add-on for people who want it. It's been a pretty fun little project, and quite educational.
Later, Greg -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregory Hill Sent: Thursday, November 10, 2005 8:32 AM To: [email protected] Subject: RE: [Rails-spinoffs] Drag & Scroll Oh, I thought the auto-adding of scrollbars was desired. That's how that original one you sent me works. That's what I've been racking my brain to fix in IE. Anyway, I doubt we can get around it in Mozilla-based browsers, but I can keep trying. I suppose if we can crack it, we should make it optional; maybe sometimes it is desirable and other times not. I'll try to work on making it less jumpy. What I sent yesterday was obviously pretty rough draft at this point. Thanks for the feedback. Greg -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Peters Sent: Wednesday, November 09, 2005 5:22 PM To: [email protected] Subject: RE: [Rails-spinoffs] Drag & Scroll Yeah it lets me drag both horizontally & vertically, but only if there is room to scroll (as it should). So if there is no horizontal scrollbar, it won't scroll horizontally - unlike your solution at the moment. Here is the javascript - I hope it's all self-contained: http://demo.plainblack.com/extras/draggable.js It looks like your solution is a great start, but it's pretty jumpy and seems to keep scrolling even when there's no more room to scroll, but that might be a problem with scriptaculous/prototype since (in Firefox not IE) when I drag my DIV either to the right (off the page) or down (off the page), it turns on the scrollbars and increases the scrollable area automatically. Not sure how easy that is to fix. James _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
