Ignore:
Timestamp:
Feb 20, 2019, 10:06:56 AM (6 years ago)
Author:
rlwalsh
Message:

tooltip: allow mouse to move +/- 4 pixels before hiding tooltip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/src/helpers/cctl_tooltip.c

    r303 r446  
    813813        }
    814814
    815         if (    (ptlPointer.x != pttd->ptlPointerLast.x)
    816              || (ptlPointer.y != pttd->ptlPointerLast.y)
     815        if (    (ptlPointer.x < pttd->ptlPointerLast.x - 4)
     816             || (ptlPointer.x > pttd->ptlPointerLast.x + 4)
     817             || (ptlPointer.y < pttd->ptlPointerLast.y - 4)
     818             || (ptlPointer.y > pttd->ptlPointerLast.y + 4)
    817819             || (pqmsg->msg == WM_BUTTON1DOWN)
    818820             || (pqmsg->msg == WM_BUTTON2DOWN)
     
    12501252        WinQueryPointerPos(HWND_DESKTOP, &ptlPointer);
    12511253
    1252         if (    (ptlPointer.x == pttd->ptlPointerLast.x)
    1253              && (ptlPointer.y == pttd->ptlPointerLast.y)
     1254        if (    (ptlPointer.x >= pttd->ptlPointerLast.x - 4)
     1255             && (ptlPointer.x <= pttd->ptlPointerLast.x + 4)
     1256             && (ptlPointer.y >= pttd->ptlPointerLast.y - 4)
     1257             && (ptlPointer.y <= pttd->ptlPointerLast.y + 4)
    12541258           )
    12551259        {
Note: See TracChangeset for help on using the changeset viewer.