mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
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:
parent
8a93c86e31
commit
51d9ccdfa4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user