A long time ago I build a fancy file manager that would make simplified clones of the items that you was dragging (it allowed multiple select) because it became very slow when dragging many thumbs. The scroller also featured some speed increase when you was scrolling a long list.. I should re-do that stuff for 1.3. If I dig it up and think it's still useful/valid I will post a reply here with a link the a fiddle
On May 3, 12:05 pm, Ger Hobbelt <[email protected]> wrote: > And here's Arian's example now done with both Sortable and Scroller (from > mootools:More): > > http://jsfiddle.net/XgXFH/3/ > > Side note #1: the onChange handler for the scroller is not mandatory, but I > had to do exactly that just this morning as I had a list which included > items which had overflow in X as well. > > Side note #2: Arian's mouse handler code at the top is now 'dead code' -- > hit 'update' in fiddle before deleting that piece. > > Enjoy. > > > > > > On Mon, May 2, 2011 at 11:26 PM, Arian Stolwijk <[email protected]> wrote: > > Pretty simple example of my idea:http://jsfiddle.net/XgXFH/2/ > > > <http://jsfiddle.net/XgXFH/2/>You could also use Scroller from MooTools > > More: > > view-source:http://mootools.net/test/mootools-ui-runner/index.php/more/Interface/...) > > (check > > the source how to use it) > > > On Mon, May 2, 2011 at 11:13 PM, alex-and-r <[email protected]> wrote: > > >> I also came up with another way just a few minutes ago. Sortables have > >> also onSort event which fires every time order of the elements of the > >> list(s) is changed. So basically when we drag an item and "sort" it > >> somewhere (not dropping it) we can check mouse position and do > >> something. :) > > >> On Tue, May 3, 2011 at 1:07 AM, Arian Stolwijk <[email protected]> wrote: > >> > No it does not. > >> > However Sortables have two evens: onStart and onComplete. > >> > In these evens you could add / remove or enable / disable another > >> mousemove > >> > event on the document. > >> > In that even you could check if your mouse is near the bottom of the > >> page, > >> > and then scroll the page. > > >> > On Mon, May 2, 2011 at 10:59 PM, Oskar Krawczyk < > >> [email protected]> > >> > wrote: > > >> >> Sortables extends the Drag class, hence inherits all of of its parents > >> >> events. > > >> >> O. > > >> >> On May 2, 2011, at 10:00 PM, alex-and-r wrote: > > >> >> > Thanks for reply, but I don't get it! :( > >> >> > I'm not good at javascript, I tried to google and read mootools docs > >> but > >> >> > still don't see how can I use onDrag event with sortables! It seems > >> to me > >> >> > that there is no such event for sortables! Or am I wrong? I found > >> this event > >> >> > for Drag and Drop but not for Sortables... :( > > -- > Met vriendelijke groeten / Best regards, > > Ger Hobbelt > > -------------------------------------------------- > web: http://www.hobbelt.com/ > http://www.hebbut.net/ > mail: [email protected] > mobile: +31-6-11 120 978 > --------------------------------------------------
