This is a migrated thread and some comments may be shown as answers.

Issue with detecting start of drag operation

1 Answer 52 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
brucep
Top achievements
Rank 1
brucep asked on 06 Jan 2010, 11:20 PM

We are writing an application that allows vertical resize and reposition of components using the drag / drop manager.


We have noticed that when the draggable area's height is small, but the width is big (e.g. a thin rectangular shape ), for dragging up or down - the drag events are not always generated unless the user moves the mouse slowly down from the center of the draggable area or horizontally first. Hence it appears that the reliability in detection of dragging is connected to the mouse’s proximity within the control to the border, and the direction of dragging.

We looked at your samples and have been able to reproduce the same effect. Please see attached image, if you start dragging quickly from where the red arrow is (near the border) – directly to the right, sometimes the drag fails.

Is there some way of making the drag start more reliable for small draggable areas.

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 08 Jan 2010, 01:37 PM
Hello bruce pople,

You need to set the threshold to 0 in this case. By default it is set to 4px.

DragDrop.RadDragAndDropManager.DragStartThreshold = 0;



Best wishes,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
DragAndDrop
Asked by
brucep
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or