Bug 1585116 - Fix usage of the TOUCHINPUT WinAPI structure in nsWindow::OnTouch(). r=cmartin

We were testing the dwFlags field against TOUCHINPUTMASKF_CONTACTAREA, when
in fact that is meant to be tested against the dwMask field.

Differential Revision: https://phabricator.services.mozilla.com/D47962

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Botond Ballo 2019-10-03 18:37:01 +00:00
parent 8a93c86e31
commit 51d9ccdfa4

View File

@ -6896,7 +6896,7 @@ bool nsWindow::OnTouch(WPARAM wParam, LPARAM lParam) {
pInputs[i].dwID, // aIdentifier
ScreenIntPoint::FromUnknownPoint(touchPoint), // aScreenPoint
/* radius, if known */
pInputs[i].dwFlags & TOUCHINPUTMASKF_CONTACTAREA
pInputs[i].dwMask & TOUCHINPUTMASKF_CONTACTAREA
? ScreenSize(TOUCH_COORD_TO_PIXEL(pInputs[i].cxContact) / 2,
TOUCH_COORD_TO_PIXEL(pInputs[i].cyContact) / 2)
: ScreenSize(1, 1), // aRadius