apz_test_native_event_utils: coordinatesRelativeToScreen does not follow device pixel density
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
People
(Reporter: saschanaz, Unassigned)
Details
This is problematic when running local test on devices with high density display.
For example, when the window is maximized and the arguments are 60, 60 respectively for aX and aY, it always becomes 60, 145 when with 100% DPI and 200% DPI on Windows.
Reporter | ||
Comment 1•4 years ago
|
||
Hmm, the comment says it returns CSS coordinates, which probably means it's working as expected?
Reporter | ||
Comment 2•4 years ago
|
||
Maybe the problem is in coordinatesRelativeToScreen
in apz_test_native_event_utils.js
.
Comment 3•4 years ago
|
||
Apologies that this hit you. It sounds like you are hitting bug 1726638, which is a recent regression. Hopefully the patches in that bug resolve the problem for you (they worked for me).
Reporter | ||
Comment 4•4 years ago
|
||
Cool, thanks! I hope the patch works when the device pixel ratio is high and the document is zoomed.
Comment 5•4 years ago
|
||
It should take into account all types of zoom: full zoom (ctrl +/-), high dpi screens, and pinch zoom.
Updated•4 years ago
|
Comment 6•4 years ago
•
|
||
Looks like bug 1726638 has been fixed. Kagami, when you have a chance, please let us know if the issue is resolved for you in a recent nightly.
Reporter | ||
Comment 7•4 years ago
|
||
Confirming it now works as expected 👍
Comment 8•4 years ago
|
||
I am sorry for that. That was my fault!
Description
•