Custom cursor offsets mouse location reported by mouse event on high resolution screen with text zoom enabled on windows

UNCONFIRMED
Unassigned

Status

()

Core
Widget: Win32
P3
normal
UNCONFIRMED
9 months ago
9 months ago

People

(Reporter: brendan.c.stevenson, Unassigned)

Tracking

51 Branch
x86_64
Windows
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: tpi:+)

(Reporter)

Description

9 months ago
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce:

Implement a custom cursor through CSS.  Here is an example: http://jsfiddle.net/TmsrP/898/

In windows display settings, set the text zoom higher than 100%.  (http://www.windowscentral.com/how-make-text-apps-bigger-windows-10 for windows 10, similar instructions for windows 8 can be found online, i can repro in both)

Click with that custom cursor on an element where you can be sure you can reproduce the click-location.  Note the x & y values reported.  (the jsfiddle above writes those values to console.log)

Set the windows text zoom display setting to 100%.  

Repeat the click with the custom cursor.  Note the x & y values reported.


Actual results:

The x & y values should be the same for both zoom settings (chrome, IE both show this behavior).


Expected results:

The x & y values are different (there is a consistent offset) when the windows display settings are set to zoom text.
(Reporter)

Comment 1

9 months ago
Slight update to JSFiddle to provide a non-svg example as well: http://jsfiddle.net/TmsrP/899/
(Reporter)

Updated

9 months ago
OS: Unspecified → Windows
Hardware: Unspecified → x86_64

Updated

9 months ago
Component: Untriaged → Widget: Win32
Product: Firefox → Core

Updated

9 months ago
Priority: -- → P3
Whiteboard: tpi:+
You need to log in before you can comment on or make changes to this bug.