Gregory Hill
2006-Mar-22 19:50 UTC
RE: [ANN] Support for window scrolling for drag anddrop
Will that work with Sortable as well?> -----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: Wednesday, March 22, 2006 12:48 PM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject: [Rails-spinoffs] [ANN] Support for window scrolling for drag > anddrop > > Today has seen the incorporation of patch #3921 into the > script.aculo.us trunk, > which allows for automatic scrolling of the page when dragging a > draggable > element. > > Thanks to rdmiller for submitting the patch! > > To use it, you basically just do: > > new Draggable(''blah'',{scroll:window}); > > Anyone: Please give it good testing and report any problems you might > have. > > -Thomas > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Gregory Hill
2006-Mar-22 20:15 UTC
RE: [ANN] Support for window scrolling for drag anddrop
> Anyone: Please give it good testing and report any problems you might > have.Seems to work pretty well in Firefox 1.5, IE 6, and Opera 8. Haven''t tested any others yet. All of these comments are based on testing it as part of a Sortable, so they may not all apply to a regular Draggable. One thing that I would personally prefer is to have it move the object you are dragging by the amount it scrolls, so the item stays with the mouse pointer. It currently seems like it just catches up after you stop scrolling, so it kind of jumps around sometimes. Also, not all of the options are passed from a Sortable (scrollSensitivity and scrollSpeed, specifically). A cool option to add would be to have it start scrolling if any part of the dragged item is beyond the view of the page (instead of basing it on the position of the mouse). I''ll see if I can''t come up with a patch for that. Otherwise, looks pretty nice. Much cleaner than my implementation that I sent to the list a while back. Greg
Thomas Fuchs
2006-Mar-22 20:23 UTC
Re: [ANN] Support for window scrolling for drag anddrop
Cool! Please do investigate it. The passing-through of the speed and sensitivity options should be more or less trivial, i guess. -Thomas Am 22.03.2006 um 21:15 schrieb Gregory Hill:> >> Anyone: Please give it good testing and report any problems you might >> have. > > Seems to work pretty well in Firefox 1.5, IE 6, and Opera 8. Haven''t > tested any others yet. All of these comments are based on testing > it as > part of a Sortable, so they may not all apply to a regular Draggable. > > One thing that I would personally prefer is to have it move the object > you are dragging by the amount it scrolls, so the item stays with the > mouse pointer. It currently seems like it just catches up after you > stop scrolling, so it kind of jumps around sometimes. > > Also, not all of the options are passed from a Sortable > (scrollSensitivity and scrollSpeed, specifically). > > A cool option to add would be to have it start scrolling if any > part of > the dragged item is beyond the view of the page (instead of basing > it on > the position of the mouse). I''ll see if I can''t come up with a patch > for that. > > Otherwise, looks pretty nice. Much cleaner than my implementation > that > I sent to the list a while back. > > Greg > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Maybe Matching Threads
- scriptaculous & sortables/draggables scrolling?
- RE: Support for window scrolling fordraganddrop
- RE: Support for window scrolling for draganddrop
- sortable scroll in div problem : dragged element doesn't follow the mouse pointer
- Autoscrolling for Draggables and Sortables