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

Not centering cursor when dragging objects

2 Answers 45 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
duster
Top achievements
Rank 1
duster asked on 05 Jan 2011, 12:50 AM
hi, i was using the drag and drop manager for my silverlight project, but whenever i click on an object to drag it, the control automatically centers the cursor on the object i'm dragging. is there a way to drag items from the exact point that the user clicks on instead? i cant seem to find a workaround for this.

2 Answers, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 05 Jan 2011, 11:19 AM
Hi duster,

By default drag cue positioning logic includes setting the position according the relative click point. It uses it whenever the click point is within the boundaries of the the opened drag cue. However, if the drag cue is smaller than the element being dragged and drag starts outside the drag cue bounderies the cue is positioned.

Please, check the attached project demonstrating the behavior and let me know if this helps in your case.

All the best,
Tsvyatko
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
duster
Top achievements
Rank 1
answered on 05 Jan 2011, 11:37 AM
that worked perfectly, thanks a lot!
Tags
DragAndDrop
Asked by
duster
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
duster
Top achievements
Rank 1
Share this question
or