PDA

View Full Version : DnD Threshold



defcon1
24 Jan 2010, 12:35 PM
Hi,

I am using the desktop example and want to change the threshold for the
window drag&drop.

Anyone an idea?

Many thanks .... ;)

24 Jan 2010, 12:53 PM
?? Click to drag threshold?

defcon1
24 Jan 2010, 11:41 PM
Sorry ... yes!

If I click on the title of the window it takes about half a second until it changes,
if I move the mouse while I click it does immediatly ...

defcon1
27 Jan 2010, 5:22 AM
Is there a way to configure the clickTimeThresh in DDProxy?

abdulqadar
23 Oct 2015, 7:07 AM
Hi [email protected] (https://www.sencha.com/forum/member.php?172-jay-moduscreate.com) , Yes click to drag threshold.

I am having the same challenge. I saw this property in Ext.dd.DragDropManagerView, but that have no effect.

Actually, i'm using dragZone class. which do not have this property i think (clickPixelThresh).
I used menu to click and drag as well with dragZone implemented.



menu.dragZone = Ext.create('Ext.dd.DragZone', menu.getEl(), {
getDragData: function (e) {
var sourceEl = e.getTarget('.x-menu-item', 10), d;
if (sourceEl) {
var cmp = Ext.get(sourceEl).component;

if (typeof cmp.menu != "undefined") return null;


d = sourceEl.cloneNode(true);
d.id = Ext.id();
return (menu.dragData = {
sourceEl: sourceEl,
repairXY: Ext.fly(sourceEl).getXY(),
ddel: d,
iconData: GetMenuItemDetailsCommon(cmp.id.replace("menu", ""))
});
}
},


getRepairXY: function () {
return menu.dragData.repairXY;
}
});


Extjs version: 5.1

Any help will be appreciated.

Thanks