mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
1be11f4ee1
Many users report that GeckoView returns non-coarse value for primary pointer capabilities. Actually, we assume that primary pointer device is 1st device by `InputDevice.getDeviceIds`, but some mobile devices seems not to return touch screen as 1st item according to user reports. Also, Android's `InputDevice` API doesn't define what is primary pointer device, so we cannot assume primary pointer device well. Other implements are, - Chrome returns coarse if something input device has coarse capability. - Firefox for Windows seems to return coarse if it is tablet mode. So we should return coarse as primary pointer capability when having touch screen, like Chrome. But there is still another issue. When I check some devices (including Android VM on Chrome OS), even if no touch screen, the `InputDevice`'s source may has `SOURCE_TOUCHSCREEN`. Chrome checks that fine pointer at first, then it checks coarse pointer. But current GV is coarse pointer at first. Since the `InputDevice`'s source may have both `SOURCE_MOUSE` and `SOURCE_TOUCHSCREEN` on touchpad/mouse, GV returns different result. So we shouldn't check `SOURCE_TOUCHSCREEN` at first. Differential Revision: https://phabricator.services.mozilla.com/D129901 |
||
---|---|---|
.. | ||
android | ||
locales | ||
.eslintrc.js |