I tried your approach and then realised that cursorAt seems to be
relative to the mouse. From the description in the documentation,
either this is a bug or the docs are wrong.

Giving cursorAt: {left: 0, top: 0} when I initialise the draggable
does what I want. Thanks for your help.

On Sep 24, 12:51 pm, "Richard D. Worth" <[email protected]> wrote:
> Bind to mousemove, set cursorAt in it so that it's set by the last mousemove
> before drag start.
> - Richard
>
> On Thu, Sep 24, 2009 at 7:13 AM, David Roe <[email protected]> wrote:
>
> > That kind of does what I want in that you can move the helper. But
> > only if you know before the drag where you want it to be. In my case I
> > don't know until you start dragging as I want it at the mouse
> > position. I tried setting cursorAt in the start event but it take
> > effect until the next drag. I need something like "cursorAt: 'mouse'"
> > or the ability to set cursorAt in the start event for the current drag
> > operation. Any other ideas on a workaround?
>
> > On Sep 23, 1:27 pm, "Richard D. Worth" <[email protected]> wrote:
> > > There is a built in option, called cursorAt:
>
> > >http://docs.jquery.com/UI/Draggable#option-cursorAt
> > > <http://docs.jquery.com/UI/Draggable#option-cursorAt>- Richard
>
> > > On Mon, Sep 21, 2009 at 11:11 AM, David Roe <[email protected]> wrote:
>
> > > > I'm using the draggable plugin and passing a function for the helper
> > > > option. Although the user can start the drag from anywhere in the
> > > > draggable element, the helper element always appears in the top left
> > > > corner.
>
> > > > Is there a way to set the helper position to the mouse position when
> > > > dragging starts? Or is there some way to manually set the helper's
> > > > position? I've tried setting the top/left styles of ui.helper in the
> > > > start event but it doesn't work.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to