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:
parent
eca3e074e5
commit
664bc242b2
1 changed files with 8 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue