Closed Bug 1642788 Opened 5 years ago Closed 5 years ago

Use mTimeStamp rather than mTime for APZ velocity computations

Categories

(Core :: Panning and Zooming, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: botond, Assigned: botond)

References

Details

Attachments

(3 files)

mTime is not always set correctly, e.g. on Linux for synthesized events (we ran into this in bug 1621781). mTimeStamp is newer, higher resolution, and a nicer API to use. We should try to switch APZ over to using mTimeStamp if possible.

https://treeherder.mozilla.org/#/jobs?repo=try&tier=1&revision=74224457b9d219916e05e901933210974637a5e7

There are gtest failures, I'm guessing due to gtests not setting mTimeStamp correctly.

Activating pinch locking means we are locked into a two-finger pan
(no scaling), which can trigger a fling animation at the end. We
track velocity via UpdateWithTouchAtDevicePoint() while pinch locked.
We need to call StartTouch() when we start tracking velocity.

Depends on D77979

Pushed by bballo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7534525df6af Use mTimeStamp rather than mTime for APZ velocity computations. r=kats https://hg.mozilla.org/integration/autoland/rev/67ce8c8ddafe Call StartTouch() when pinch locking is activated. r=kats https://hg.mozilla.org/integration/autoland/rev/702cb5d63666 Ensure APZ gtests set mTimeStamp correctly on events where needed. r=kats
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: