Move SetMouseEventMask() into MouseDown, where it should be.
This commit is contained in:
committed by
Philippe Saint-Pierre
parent
c95601d728
commit
66ddd2d6e9
@@ -813,6 +813,7 @@ IconView::MouseDown(BPoint where)
|
|||||||
// start tracking - this icon might be dragged around
|
// start tracking - this icon might be dragged around
|
||||||
fDragPoint = where;
|
fDragPoint = where;
|
||||||
fTracking = true;
|
fTracking = true;
|
||||||
|
SetMouseEventMask(B_POINTER_EVENTS, B_NO_POINTER_HISTORY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -903,7 +904,6 @@ IconView::MouseMoved(BPoint where, uint32 transit, const BMessage* dragMessage)
|
|||||||
DragMessage(&message, dragBitmap, B_OP_ALPHA,
|
DragMessage(&message, dragBitmap, B_OP_ALPHA,
|
||||||
fDragPoint - BitmapRect().LeftTop(), this);
|
fDragPoint - BitmapRect().LeftTop(), this);
|
||||||
fDragging = true;
|
fDragging = true;
|
||||||
SetMouseEventMask(B_POINTER_EVENTS, B_NO_POINTER_HISTORY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dragMessage != NULL && !fDragging && AcceptsDrag(dragMessage)) {
|
if (dragMessage != NULL && !fDragging && AcceptsDrag(dragMessage)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user