Hello,

I am trying to activate the draggable only when the mousedown is fired
on the element. However I am not able to get it fully working. Here is
what I have tried so far:

....
<div id="#item" onmousedown="startDrag">
 I am draggable
</div>
....

Script:

var _isDraggingEnabled = false;
function startDrag()
{
  //if (!_isDraggingEnabled)
  //{
    $("#item").draggable(
    {
      helper: 'clone'
    });
  //}
}
....

Now the problem is that when I press the mousedown the first time,
nothing happens the item doesnt move around with the mouse. The second
time I press the mousdown on the element, I am able to move it around.
Any idea how I can fix this?

Thanks

--~--~---------~--~----~------------~-------~--~----~
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