View Full Version : Ext.dd.DD fire click event after drop

5 Dec 2013, 2:15 AM
Hi all,

I have problem with Ext.dd.DD component. In sencha desktop example, I registered icons as Ext.dd.DD elements. I need to move icons over desktop surface like we can move desktop icons in Windows OS.

var dd = new Ext.dd.DD('icon-users-shortcut');

I works, I can drag icon and drop it somewhere at desktop, but on drop it fires click event (window has been opened, but I haven't click on icon, I just wanted to move it).

How to prevent click event after drag n drop.


Gary Schlosberg
6 Dec 2013, 12:48 PM
Thanks for the report. I'm not able to reproduce this. Can you please post a test case which reproduces the issue?

11 Dec 2013, 2:38 AM

If you take this example
d (http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/desktop/desktop.html)esktop icon aren't draggable.

After desktop initialization, make one icon draggable with,
var dd = new Ext.dd.DD('Grid Window-shortcut'); //will make first icon draggable

After that you can move it all over desktop, but when you drop it, it will cause click event and open window. I think this is bug.

I know destop is just example, but that isn't my point, if you drag any component made by Ext.dd.DD() after drop it will cause click event.

Best regards!