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

MousePosition while dragging

0 Answers 110 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 25 Jan 2013, 09:47 AM
Hi,

I initialize dragging by following code:

DragDropManager.AddDragInitializeHandler(xToolBar1, OnDragInitialize);
DragDropManager.AddGiveFeedbackHandler(xToolBar1, OnGiveFeedback);

In GiveFeedbackHandler and DropHandler  Mouse.GetPosition(xToolbarTray) gives negative numbers, which is incorrect. Is this bug?
I attached sample project to demonstrate this behaviour: https://skydrive.live.com/redir?resid=51A46BBA4E9EF07E!1312&authkey=!ALflFx7eswlzjic


Basically, I need distinguish between dragging or dropping on/before/after element in drop target.

I'm using reorder behaviour very often and just inserting element after the element under mouse gives very negative user experience. I cannot move element on the first position this way.

No answers yet. Maybe you can help?

Tags
DragAndDrop
Asked by
Daniel
Top achievements
Rank 1
Share this question
or