From 3c2a04f4c936a976748c5564b65a67a9803e0a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 9 Apr 2009 20:45:18 +0000 Subject: [PATCH] * 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 --- src/apps/charactermap/CharacterView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/charactermap/CharacterView.cpp b/src/apps/charactermap/CharacterView.cpp index fb85664b5b..ab0be0bd68 100644 --- a/src/apps/charactermap/CharacterView.cpp +++ b/src/apps/charactermap/CharacterView.cpp @@ -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);