Well, I added a manual check to make sure it doesn't move it above 0 on
either axis.  I guess I just never let it scroll high enough to notice
the behavior before.  The first two lines were in the diff, just add the
conditionals after.  Or if you know a more prototype-ish way to
accomplish the same thing, go nuts.

    Draggables._lastScrollPointer[0] += offset[0];
    Draggables._lastScrollPointer[1] += offset[1];
    if (Draggables._lastScrollPointer[0] < 0)
      Draggables._lastScrollPointer[0] = 0;
    if (Draggables._lastScrollPointer[1] < 0)
      Draggables._lastScrollPointer[1] = 0;


Greg

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Gregory Hill
> Sent: Thursday, March 23, 2006 10:41 AM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: RE: [Rails-spinoffs] [ANN] Support for window scrolling
> fordraganddrop
> 
> > Heya,
> >
> > I think something is wrong with the patch-- when moving outside the
> > window
> > on the top, when the window is completely scrolled up, the draggable
> > somehow
> > continues to move (tested on Safari and Firefox).
> 
> Hmm... I didn't see that in my testing, but I'll see if I can figure
it
> out.
> 
> Greg
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to