* Fixed that you would drag the wrong character when the drag was started

while you were already over another character.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30081 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-04-09 20:45:18 +00:00
parent 22805aae7f
commit 3c2a04f4c9

View File

@ -297,7 +297,12 @@ CharacterView::MouseMoved(BPoint where, uint32 transit,
if (fClickPoint.x >= 0 && (fabs(where.x - fClickPoint.x) > 4
|| fabs(where.y - fClickPoint.y) > 4)) {
// start dragging
// Start dragging
// Update character - we want to drag the one we originally clicked
// on, not the one the mouse might be over now.
_GetCharacterAt(fClickPoint, character, &frame);
BPoint offset = fClickPoint - frame.LeftTop();
frame.OffsetTo(B_ORIGIN);