comctl32: Only execute hit test in MouseMove if necessary.
This commit is contained in:
parent
c77d49b4c3
commit
685fe55f97
|
@ -3620,12 +3620,6 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
|
||||||
if (y > infoPtr->rcList.bottom)
|
if (y > infoPtr->rcList.bottom)
|
||||||
y = infoPtr->rcList.bottom;
|
y = infoPtr->rcList.bottom;
|
||||||
|
|
||||||
tmp.x = x;
|
|
||||||
tmp.y = y;
|
|
||||||
|
|
||||||
lvHitTestInfo.pt = tmp;
|
|
||||||
LISTVIEW_HitTest(infoPtr, &lvHitTestInfo, TRUE, TRUE);
|
|
||||||
|
|
||||||
if (infoPtr->bMarqueeSelect)
|
if (infoPtr->bMarqueeSelect)
|
||||||
{
|
{
|
||||||
LVITEMW item;
|
LVITEMW item;
|
||||||
|
@ -3708,6 +3702,12 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN
|
||||||
rect.top = infoPtr->ptClickPos.y - wDragHeight;
|
rect.top = infoPtr->ptClickPos.y - wDragHeight;
|
||||||
rect.bottom = infoPtr->ptClickPos.y + wDragHeight;
|
rect.bottom = infoPtr->ptClickPos.y + wDragHeight;
|
||||||
|
|
||||||
|
tmp.x = x;
|
||||||
|
tmp.y = y;
|
||||||
|
|
||||||
|
lvHitTestInfo.pt = tmp;
|
||||||
|
LISTVIEW_HitTest(infoPtr, &lvHitTestInfo, TRUE, TRUE);
|
||||||
|
|
||||||
/* reset item marker */
|
/* reset item marker */
|
||||||
if (infoPtr->nLButtonDownItem != lvHitTestInfo.iItem)
|
if (infoPtr->nLButtonDownItem != lvHitTestInfo.iItem)
|
||||||
infoPtr->nLButtonDownItem = -1;
|
infoPtr->nLButtonDownItem = -1;
|
||||||
|
|
Loading…
Reference in New Issue