Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Eric on Dec 01, 2009 04:53
open dhtmlx forum
get the current state of MercyDrag

Hi,

I want to have 2 different behaviours on the onDrop event according if the drag and drop was for Moving or for Copying (enableMercyDrag) : how can I know if the MercyDrag is enabled or not?

Regards,

Eric
Answer posted by Alex (support) on Dec 01, 2009 05:24

Hello,

you can use some variable and set it enabled when the enableMercyDrag method called.

There is also the private property dpcpy that is true when Mercy Drag enabled:

if(obj.dpcpy) /*your code here*/