Hi all, I''ve applied an experimental patch today to the scripaculous trunk. Setting the scroll option on Draggables or Sortables to an element (or an element id) will attempt to auto-scroll this element when dragging. See test/functional/dragdrop3_test.html for a demo/usage. It''s modelled after the behaviour in the Mac OS X finder, with variable scrolling speed depending on the distance to the scroll element edge. Also, it''s tweakable with the scrollSpeed and scrollSensitivity options. Note that the exact behaviour and options names might still change, I''m open to suggestions on this. Also, it''s currently not working for scrolling the window (but that should be a trivial addition). So-- let''s test and discuss this... :) -Thomas
Trying to go to the SVN page via the wiki... not loading (site is always super slow) -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Thomas Fuchs Sent: Tuesday, January 10, 2006 1:59 PM To: script.aculo.us List Subject: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and Sortables Hi all, I''ve applied an experimental patch today to the scripaculous trunk. Setting the scroll option on Draggables or Sortables to an element (or an element id) will attempt to auto-scroll this element when dragging. See test/functional/dragdrop3_test.html for a demo/usage. It''s modelled after the behaviour in the Mac OS X finder, with variable scrolling speed depending on the distance to the scroll element edge. Also, it''s tweakable with the scrollSpeed and scrollSensitivity options. Note that the exact behaviour and options names might still change, I''m open to suggestions on this. Also, it''s currently not working for scrolling the window (but that should be a trivial addition). So-- let''s test and discuss this... :) -Thomas _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers.
svn co http://dev.rubyonrails.org/svn/rails/spinoffs/scriptaculous checking the wiki... -Thomas Am 10.01.2006 um 21:04 schrieb Ryan Gahl:> Trying to go to the SVN page via the wiki... not loading (site is > always > super slow) > > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of > Thomas Fuchs > Sent: Tuesday, January 10, 2006 1:59 PM > To: script.aculo.us List > Subject: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and > Sortables > > Hi all, > > I''ve applied an experimental patch today to the scripaculous trunk. > > Setting the scroll option on Draggables or Sortables to an element > (or an element id) > will attempt to auto-scroll this element when dragging. > > See test/functional/dragdrop3_test.html for a demo/usage. > > It''s modelled after the behaviour in the Mac OS X finder, with > variable scrolling > speed depending on the distance to the scroll element edge. > > Also, it''s tweakable with the scrollSpeed and scrollSensitivity > options. > > > Note that the exact behaviour and options names might still change, > I''m open > to suggestions on this. Also, it''s currently not working for > scrolling the window > (but that should be a trivial addition). > > So-- let''s test and discuss this... :) > > -Thomas > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > The information transmitted in this electronic mail is intended > only for the > person or entity to which it is addressed and may contain > confidential, > proprietary, and/or privileged material. Any review, retransmission, > dissemination or other use of, or taking of any action in reliance > upon, > this information by persons or entities other than the intended > recipient > is prohibited. If you received this in error, please contact the > sender and > delete the material from all computers. > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Thank you =) -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Thomas Fuchs Sent: Tuesday, January 10, 2006 2:15 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and Sortables svn co http://dev.rubyonrails.org/svn/rails/spinoffs/scriptaculous checking the wiki... -Thomas Am 10.01.2006 um 21:04 schrieb Ryan Gahl:> Trying to go to the SVN page via the wiki... not loading (site is > always > super slow) > > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of > Thomas Fuchs > Sent: Tuesday, January 10, 2006 1:59 PM > To: script.aculo.us List > Subject: [Rails-spinoffs] [ANN] Autoscrolling for Draggables and > Sortables > > Hi all, > > I''ve applied an experimental patch today to the scripaculous trunk. > > Setting the scroll option on Draggables or Sortables to an element > (or an element id) > will attempt to auto-scroll this element when dragging. > > See test/functional/dragdrop3_test.html for a demo/usage. > > It''s modelled after the behaviour in the Mac OS X finder, with > variable scrolling > speed depending on the distance to the scroll element edge. > > Also, it''s tweakable with the scrollSpeed and scrollSensitivity > options. > > > Note that the exact behaviour and options names might still change, > I''m open > to suggestions on this. Also, it''s currently not working for > scrolling the window > (but that should be a trivial addition). > > So-- let''s test and discuss this... :) > > -Thomas > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > The information transmitted in this electronic mail is intended > only for the > person or entity to which it is addressed and may contain > confidential, > proprietary, and/or privileged material. Any review, retransmission, > dissemination or other use of, or taking of any action in reliance > upon, > this information by persons or entities other than the intended > recipient > is prohibited. If you received this in error, please contact the > sender and > delete the material from all computers. > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
On 11/01/2006, at 6:58 AM, Thomas Fuchs wrote:> Setting the scroll option on Draggables or Sortables to an element > (or an element id) > will attempt to auto-scroll this element when dragging. > > See test/functional/dragdrop3_test.html for a demo/usage. > > It''s modelled after the behaviour in the Mac OS X finder, with > variable scrolling > speed depending on the distance to the scroll element edge. > > Also, it''s tweakable with the scrollSpeed and scrollSensitivity > options.Awesome work Thomas, a much needed addition! Works fine for me (Safari 2.0.2). My only feedback is that I felt I had to go too far beyond the frame of the scrollable div to start the scrolling. -- tim lucas
Possibly Parallel Threads
- scriptaculous & sortables/draggables scrolling?
- RE: Support for window scrolling for drag anddrop
- RE: Support for window scrolling fordraganddrop
- Sortables/Draggables and overflow
- sortable scroll in div problem : dragged element doesn't follow the mouse pointer