asynchronous mouse tracking starts working. At least, selection does.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12792 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2005-05-23 21:06:35 +00:00
parent ada5975312
commit 6ef50d339e
+11 -2
View File
@@ -3899,8 +3899,17 @@ bool
BTextView::PerformMouseMoved(BPoint where, uint32 code)
{
CALLED();
// TODO: Put here the code for asynchronous mouse tracking
return false;
if (fClickRunner == NULL)
return false;
// TODO: Multiword/Line selection
int32 offset = OffsetAt(where);
if (offset < fClickOffset)
Select(offset, fClickOffset);
else
Select(fClickOffset, offset);
return true;
}