New issue
Advanced search Search tips

Issue 809979 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Pointer events contain weird coordinates when mobile device emulation is switched on in dev tools

Reported by ma...@seats.io, Feb 7 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36

Steps to reproduce the problem:
1. open the following URL: https://jsfiddle.net/t86zvows/1/
2. open the Chrome dev tools, and turn on the mobile device toolbar so that the page is opened as if on a mobile device
3. open the console
4. click anywhere inside the yellow rectangle

What is the expected behavior?
clientX value of the pointerdown event matches the clientX value of the click and touchstart events

What went wrong?
clientX value of the pointerdown event does not match the other clientX values at all

Did this work before? N/A 

Chrome version: 64.0.3282.140  Channel: stable
OS Version: OS X 10.13.2
Flash Version: 

This is either a bug, or me misinterpreting the pointer event standard ;-)
 
small-theatre.html
627 bytes View Download

Comment 1 by ma...@seats.io, Feb 7 2018

I also see this kind of behaviour on actual Android devices, when the web page does not contain a meta viewport tag. When Chrome zooms out to fully fit the page on the device, the pointer event coordinates are off.
Cc: nzolghadr@chromium.org
Components: -Blink Blink>Input
Owner: eirage@chromium.org
Status: Assigned (was: Unconfirmed)
eirage@ please investigate.

Comment 3 by eirage@chromium.org, Feb 12 2018

Owner: nzolghadr@chromium.org
Navid, is this similar to the bug you are working on?
Yeah. That's me. I'll take care of it.
Status: Fixed (was: Assigned)

Sign in to add a comment