mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 01:08:39 +09:00
moebius#71: DOM - Pointer Events - improvements
https://github.com/MoonchildProductions/moebius/pull/71
This commit is contained in:
parent
10e5833dce
commit
40c62c205b
23 changed files with 294 additions and 430 deletions
|
|
@ -228,8 +228,10 @@ struct ParamTraits<mozilla::WidgetPointerHelper>
|
|||
WriteParam(aMsg, aParam.pointerId);
|
||||
WriteParam(aMsg, aParam.tiltX);
|
||||
WriteParam(aMsg, aParam.tiltY);
|
||||
// We don't serialize convertToPointer and retargetedByPointerCapture since
|
||||
// they are temporarily variable and should be reset to default.
|
||||
WriteParam(aMsg, aParam.twist);
|
||||
WriteParam(aMsg, aParam.tangentialPressure);
|
||||
// We don't serialize convertToPointer since it's temporarily variable and
|
||||
// should be reset to default.
|
||||
}
|
||||
|
||||
static bool Read(const Message* aMsg, PickleIterator* aIter, paramType* aResult)
|
||||
|
|
@ -237,7 +239,9 @@ struct ParamTraits<mozilla::WidgetPointerHelper>
|
|||
bool rv;
|
||||
rv = ReadParam(aMsg, aIter, &aResult->pointerId) &&
|
||||
ReadParam(aMsg, aIter, &aResult->tiltX) &&
|
||||
ReadParam(aMsg, aIter, &aResult->tiltY);
|
||||
ReadParam(aMsg, aIter, &aResult->tiltY) &&
|
||||
ReadParam(aMsg, aIter, &aResult->twist) &&
|
||||
ReadParam(aMsg, aIter, &aResult->tangentialPressure);
|
||||
return rv;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue