Change the value of COORDINATE_EPSILON back to 0.01
Categories
(Core :: Panning and Zooming, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox106 | --- | fixed |
People
(Reporter: botond, Assigned: botond)
Details
Attachments
(2 files)
COORDINATE_EPSILON is a constant used by APZ code as an epsilon in floating-point coordinate comparisons.
Its value at the time of its introduction was 0.01. The comment above it includes the following note:
// Note also that the smallest legitimate difference in page
// coordinates is 1 app unit, which is 1/60 of a (CSS pixel), so this epsilon
// isn't too large.
which suggests that the value was deliberately chosen to be below 1/60 = 0.016....
The current value of COORDINATE_EPSILON
is 0.02. The change happened in https://phabricator.services.mozilla.com/D87405, which is titled "Move AsyncTransform from AsyncCompositionManager.h to APZUtils.h".
The change to the value of COORDINATE_EPSILON
does not seem to be related to the title of that patch, nor is it explained/justified in the commit message or associated discussion.
My best guess is, this is a change I had applied locally for some debugging purpose, and it slipped into that patch accidentally during patch splitting.
Notably, the 0.02 value is inconsistent with the original intent of being smaller than 1 app unit (0.016...).
In this bug, I'd like to change it back to the original value of 0.01.
Assignee | ||
Comment 1•3 years ago
|
||
The previous change to 0.02 appears to have been unintentional,
and the value should be less than 1 app unit (1/60 of a pixel).
Assignee | ||
Comment 2•3 years ago
|
||
This epsilon was split off from COORDINATE_EPSILON in bug 1787099,
but the original value used here (before bug 1659642) was 0.01
as well.
Depends on D155904
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/363982aa6de6
https://hg.mozilla.org/mozilla-central/rev/6bf13d375660
Description
•