04-09-2008, 04:28 PM
Good morning,
this demo is applying the newly written ClickDragControl which is a combination ("source code fusion") of the DragControl and the ClickControl of the flare library. This new control was implemented since the simultaneous usage of the DragControl and the ClickControl leads to the (for me) unwanted behavior that a click event is dispatched at the end of a dragging.
In opposite the new ClickDragControl dispatches a click event only when no dragging has happened before.
In this demo both single and double clicks are reported on the display. Nodes can be dragged around without a single click event being dispatched and reported - as far as this demo goes.
Early alpha version, please report any problems you experience with this new control.
Cheers
martin
this demo is applying the newly written ClickDragControl which is a combination ("source code fusion") of the DragControl and the ClickControl of the flare library. This new control was implemented since the simultaneous usage of the DragControl and the ClickControl leads to the (for me) unwanted behavior that a click event is dispatched at the end of a dragging.
In opposite the new ClickDragControl dispatches a click event only when no dragging has happened before.
In this demo both single and double clicks are reported on the display. Nodes can be dragged around without a single click event being dispatched and reported - as far as this demo goes.
Early alpha version, please report any problems you experience with this new control.
Cheers
martin