Hi.

I have a list component with items I would like to be able to
drag-and-drop, but also respond to double clicks.

I am finding that when a component has a mouseDown handler which calls
mx.managers.DragManager.doDrag(...) or startDrag() it stops the
doubleClick event firing (and yes, I have set
doubleClickEnabled="true" ;-) ).

I have tried setting the doubleClick action directly on the item
renderer and setting mx:List/@itemDoubleClick - with the same effect
in both cases: the doubleClick event fires ok only when I comment out
the drag operation.

In some ways this makes sense - the language reference states:
"For a doubleClick event to occur, it must immediately follow the
following series of events: mouseDown, mouseUp, click, mouseDown,
mouseUp. " and I can imagine that the drag start operation is firing
an event which changes the sequence and stops it being recognised as a
double click.  However, I would have thought what I want to do is
perfectly reasonable so should be possible.

Am I missing something? Or does anyone have a workaround?

Thanks.

Kevin.

Reply via email to