Always sync the view cursor immediately, not only when entering the view. Should
fix the remaining issues pointed out in #3198. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35946 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -676,14 +676,10 @@ BTextView::MouseMoved(BPoint where, uint32 code, const BMessage *message)
|
|||||||
if (_PerformMouseMoved(where, code))
|
if (_PerformMouseMoved(where, code))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool sync = false;
|
|
||||||
switch (code) {
|
switch (code) {
|
||||||
// We force a sync when the mouse enters the view
|
|
||||||
case B_ENTERED_VIEW:
|
case B_ENTERED_VIEW:
|
||||||
sync = true;
|
|
||||||
// supposed to fall through
|
|
||||||
case B_INSIDE_VIEW:
|
case B_INSIDE_VIEW:
|
||||||
_TrackMouse(where, message, sync);
|
_TrackMouse(where, message, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case B_EXITED_VIEW:
|
case B_EXITED_VIEW:
|
||||||
|
|||||||
Reference in New Issue
Block a user