Global Windows "Use as a mouse" pen setting in Firefox
Categories
(Core :: Widget: Win32, enhancement)
Tracking
()
People
(Reporter: suleyman.okan, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
The pen scrolling behavior in Firefox is determined by a global Windows setting found under Pen & Windows Ink settings, called "Let me use my pen as a mouse in some desktop apps".
Actual results:
The setting works as expected. For example, when the option "Let me use my pen as a mouse in some desktop apps" is selected, the pen selects text, like a mouse, and when unchecked, it scrolls.
Expected results:
There are some apps that are not very pen-friendly and require the option to use the pen as a mouse.
Firefox is largely pen friendly, and using the pen as a mouse is mostly undesirable. It is also impractical to keep toggling this global setting. If Firefox had an internal setting to override the global Windows setting, it would be the most flexible solution all around.
This issue was referenced in https://bugzilla.mozilla.org/show_bug.cgi?id=1567515 (sorry for the late bug report!)
| Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•6 years ago
•
|
||
Thanks for the report. A couple of questions to make sure I'm understanding it correctly:
- You're using a pen to interact with a touchscreen (as opposed to a drawing tablet as in bug 1607216)?
- You would like to keep the OS-level setting "Let me use my pen as a mouse in some desktop apps" checked, but have Firefox (optionally) behave as if it were unchecked?
| Reporter | ||
Comment 3•6 years ago
|
||
(In reply to Botond Ballo [:botond] from comment #2)
Thanks for the report. A couple of questions to make sure I'm understanding it correctly:
- You're using a pen to interact with a touchscreen (as opposed to a drawing tablet as in bug 1607216)?
- You would like to keep the OS-level setting "Let me use my pen as a mouse in some desktop apps" checked, but have Firefox (optionally) behave as if it were unchecked?
Yes and yes, that is correct.
Comment 4•6 years ago
•
|
||
Ok, thanks. I'm not sure if it's possible for Firefox to tell pen inputs apart from actual mouse inputs if the OS setting is checked, but it's something we can investigate.
Jeff and Timothy, I'm cc'ing you in case either of you have access to a Windows touchscreen and a pen device and feel like investigating this.
Otherwise, I can investigate this once I have access to those things (which will likely be when our offices reopen).
Comment 5•6 years ago
|
||
I believe I should be able to check on my surface pro 2 and the GetPointerType api should be able to get this info. It returns one of: PT_POINTER, PT_TOUCH, PT_PEN, PT_MOUSE, PT_TOUCHPAD.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getpointertype
https://docs.microsoft.com/en-ca/windows/win32/api/winuser/ne-winuser-tagpointer_input_type
Comment 6•6 years ago
|
||
Yeah, I definitely got one msg with pointer type pen when tapping the pen to the screen, it looks like I got msgs with pointer type mouse too (there is no mouse hooked up to that system), I get the mouse pointer type msgs also when using the touchpad and when touching the screen. Probably some compatibility thing.
I never get touchpad as a source (except for the special DM_POINTERHITTEST msg). I got touch as a pointer type when touching the screen.
Updated•4 years ago
|
Description
•