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:
@@ -3899,8 +3899,17 @@ bool
|
|||||||
BTextView::PerformMouseMoved(BPoint where, uint32 code)
|
BTextView::PerformMouseMoved(BPoint where, uint32 code)
|
||||||
{
|
{
|
||||||
CALLED();
|
CALLED();
|
||||||
// TODO: Put here the code for asynchronous mouse tracking
|
if (fClickRunner == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// TODO: Multiword/Line selection
|
||||||
|
int32 offset = OffsetAt(where);
|
||||||
|
if (offset < fClickOffset)
|
||||||
|
Select(offset, fClickOffset);
|
||||||
|
else
|
||||||
|
Select(fClickOffset, offset);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user