зеркало из https://github.com/mozilla/pjs.git
Mouse exit should not generate spurious mouse move event b=319099 r=ere sr=roc
This commit is contained in:
Родитель
5f427d28e7
Коммит
ba8d4dae1f
|
@ -4521,11 +4521,11 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
||||||
#ifndef WINCE
|
#ifndef WINCE
|
||||||
case WM_MOUSELEAVE:
|
case WM_MOUSELEAVE:
|
||||||
{
|
{
|
||||||
// We use MAXDWORD as the mouse position to make sure
|
// We use MINLONG | MINSHORT as the mouse position to make sure
|
||||||
// EventStateManager doesn't convert this EXIT message to
|
// EventStateManager doesn't convert this EXIT message to
|
||||||
// a MOVE message (besides, WM_MOUSELEAVE doesn't have the position
|
// a MOVE message (besides, WM_MOUSELEAVE doesn't have the position
|
||||||
// in lParam).
|
// in lParam).
|
||||||
DispatchMouseEvent(NS_MOUSE_EXIT, wParam, MAXDWORD);
|
DispatchMouseEvent(NS_MOUSE_EXIT, wParam, MINLONG | MINSHORT);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче