Hiroyuki Ikezoe e33d1e93e3 Bug 1348786 - Factor out the last part of shouldConsiderStartingSwipeFromEvent into a new function. r=tnikkel
The `PanGestureInput`, the argument of the new function named CanTriggerSwipe,
is generated by `theEvent`, the `PanGesgureInput.mPanDisplacement.{x,y}` are
calculated by `theEvent.scrollingDelta{X,Y}` * `BackingScaleFactor()`, so both
inequalities are equivalent.

[1] https://searchfox.org/mozilla-central/rev/07c3bd159f79f81f86050d5e002a14ed741f34f7/widget/cocoa/nsChildView.mm#3394-3395,3408

Differential Revision: https://phabricator.services.mozilla.com/D134368
2022-01-05 09:08:07 +00:00
..