1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windowing: Only begin mouse tracking for movement in the client area

This commit is contained in:
reuk 2024-06-04 15:00:55 +01:00
parent eca3e074e5
commit 664bc242b2
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -2732,7 +2732,7 @@ private:
TRACKMOUSEEVENT tme;
tme.cbSize = sizeof (tme);
tme.dwFlags = TME_LEAVE;
tme.dwFlags = TME_LEAVE | (area == WindowArea::nonclient ? TME_NONCLIENT : 0);
tme.hwndTrack = hwnd;
tme.dwHoverTime = 0;
@ -3792,7 +3792,10 @@ private:
return 0;
case WM_POINTERLEAVE:
case WM_MOUSELEAVE: doMouseExit(); return 0;
case WM_NCMOUSELEAVE:
case WM_MOUSELEAVE:
doMouseExit();
return 0;
case WM_LBUTTONDOWN:
case WM_MBUTTONDOWN:
@ -3802,7 +3805,9 @@ private:
case WM_LBUTTONUP:
case WM_MBUTTONUP:
case WM_RBUTTONUP: doMouseUp (getPointFromLocalLParam (lParam), wParam); return 0;
case WM_RBUTTONUP:
doMouseUp (getPointFromLocalLParam (lParam), wParam);
return 0;
case WM_POINTERWHEEL:
case 0x020A: /* WM_MOUSEWHEEL */ doMouseWheel (wParam, true); return 0;