Issue with detecting start of drag operation

2 posts, 0 answers
  1. brucep
    brucep avatar
    1 posts
    Member since:
    Jul 2009

    Posted 06 Jan 2010 Link to this post

    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.

  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 08 Jan 2010 Link to this post

    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,
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top