Re: [flexcoders] drag drop invokes click handler of dragged compoent

2008-10-22 Thread SAAGAR SHETTY
Hi Prashant,

You can try using mouseUp event instead of click event.
But you will also have to write some extra logic to check if the drag is being 
performed.
You may set some boolean variable on drag and check it on mouseUp event handler.
If it is set then do not do anything.

Hope this helps

Thanks,
Saagar Shetty.





- Original Message 
From: jitendra jain [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 2:15:02 PM
Subject: Re: [flexcoders] drag drop invokes click handler of dragged compoent


I don't understand your question. How can you start dragging without clicking?
Please make it very clear what you want... If possible give an example..
 Thanks,

with Regards,
Jitendra Jain



 From: prashant194 prashant194@ yahoo.com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, 21 October, 2008 1:57:53 PM
Subject: [flexcoders] drag drop invokes click handler of dragged compoent


Is there any way i can strop the click handler of the dragged
component being fired when the component is dragged and dropped over
other region?

I want the click handler to work only on non drag operation i.e. when
the component is clicked only and i want to stop click handler from
fired when dragged and dropped.



 Check out the all-new face of Yahoo! India. Click here. 

Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
Now! http://messenger.yahoo.com/download.php

Re: [flexcoders] drag drop invokes click handler of dragged compoent

2008-10-22 Thread Mark Carter

The DragManager has a useful method to save you the trouble: isDragging(), I
think.

I needed to do something like this just yesterday...

I have a list or words in one list and then the synonyms for the selected
word in another. I want to be able to drag a word from the first list to the
second list (saying This word is also a synonym etc).

However, when you try to drag the word, the selection changes and so the 2nd
list updates with the synonyms of the second word!

All I did was to use DragManager.isDragging() to prevent updating of the 2nd
list when dragging. Then when dragging finished (dragComplete), set the
selected item of the first list back to its pre-drag state.


SAAGAR SHETTY wrote:
 
 You can try using mouseUp event instead of click event.
 But you will also have to write some extra logic to check if the drag is
 being performed.
 You may set some boolean variable on drag and check it on mouseUp event
 handler.
 If it is set then do not do anything.
 

-- 
View this message in context: 
http://www.nabble.com/drag-drop-invokes-click-handler-of-dragged-compoent-tp20085668p20112727.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] drag drop invokes click handler of dragged compoent

2008-10-21 Thread prashant194
Is there any way i can strop the click handler of the dragged
component being fired when the component is dragged and dropped over
other region?

I want the click handler to work only on non drag operation i.e. when
the component is clicked only and i want to stop click handler from
fired when dragged and dropped.



Re: [flexcoders] drag drop invokes click handler of dragged compoent

2008-10-21 Thread jitendra jain
I don't understand your question. How can you start dragging without clicking?
Please make it very clear what you want... If possible give an example..
 Thanks,

with Regards,
Jitendra Jain



From: prashant194 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, 21 October, 2008 1:57:53 PM
Subject: [flexcoders] drag drop invokes click handler of dragged compoent


Is there any way i can strop the click handler of the dragged
component being fired when the component is dragged and dropped over
other region?

I want the click handler to work only on non drag operation i.e. when
the component is clicked only and i want to stop click handler from
fired when dragged and dropped.

 


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/