Firefox detects windows touch screen as primary input device.
Categories
(Core :: DOM: CSS Object Model, defect, P3)
Tracking
()
People
(Reporter: tonyw, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36
Steps to reproduce:
Use Firefox on a windows laptop, with touchscreen.
Actual results:
Microsoft defines the primary pointing device on windows to be the mouse, regardless of if the PC has a touch screen or not:
https://docs.microsoft.com/en-us/windows/win32/uxguide/inter-mouse
However, if the pc has a touchscreen, then Firefox detects the touchscreen as primary device.
@media(pointer: coarse) is true
@media(pointer: fine) is false
Expected results:
@media(pointer: coarse) should be false
@media(pointer: fine) should be true.
@media(any-pointer: coarse) should be true.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Reporter | ||
Updated•4 years ago
|
Comment 2•4 years ago
|
||
(In reply to tony Weston from comment #0)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36
Steps to reproduce:
Use Firefox on a windows laptop, with touchscreen.
Actual results:
Microsoft defines the primary pointing device on windows to be the mouse, regardless of if the PC has a touch screen or not:
https://docs.microsoft.com/en-us/windows/win32/uxguide/inter-mouse
Woo, I didn't know that. Does that mean even if there is no mouse on a touch screen, it should behave as if there is a mouse?
Updated•4 years ago
|
Reporter | ||
Comment 3•4 years ago
|
||
I think its the case that should the device be a desktop/laptop computer , if it has a mouse/trackpad then this is the primary pointing device.
If it doesn't have a mouse, only touchscreen, then this would become the primary pointing device by virtue this is the only pointing device.
BUT, more importantly, as a developer building responsive websites, we need to understand what the user would normally be using to to control the pointer, so as to modify the UI to adapt to this method - Making checkboxes larger for touch screens, vs mouse, for instance. Im fairly certain that the majority of windows users will still be using a mouse to control their PC even if they have a touchscreen, so this should be considered the primary input device when the mouse is available. This is how it currently works in Chrome.
This would be different if, say, you connected a mouse to a mobile phone. The primary device would still be a touchscreen, regardless of mouse pointing now being available.
I can confirm on my Asus laptop that Firefox does not detect my trackpad as my primary input device. The pointer media query returns course:
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pointer
Updated•10 months ago
|
Description
•