Closed Bug 1213756 Opened 9 years ago Closed 3 years ago

Improve the touch area: stylus case, form of the area and pressure detection

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: domivinc, Unassigned)

Details

This bug is a follow-up of bug 1208370 comment 17 from mcomella:
>>>>
When the user clicks a point, we create a circle around that point representing the user's finger. If it's a stylus, we ignore the press.  
<<<<

On the Android side, the touch area is currently used by: the closest link behavior and also by the cluster detection behavior (zoomed view depends on the cluster detection). The code [1] is also used on the B2G side.
The current touch area is a rectangle.
The current size of the touch area is defined by the 5 following preferences: 
ui.mouse.radius.enabled = true
ui.mouse.radius.leftmm = 3
ui.mouse.radius.rightmm = 3
ui.mouse.radius.topmm = 5
ui.mouse.radius.bottommm = 2

Two improvements based on the initial comment from mcomella:

1- Could we detect the stylus case and in this case change the behavior (reduce the size of the touch area)?

2- Could we use a circle and not a rectangle for the touch area?

Another point we could investigate on this bug is the pressure of the finger. 

3- Some devices support pressure detection, it could be a way to adapt the size of the touch area: low pressure -> small touch area, high pressure -> large touch area.


[1] https://dxr.mozilla.org/mozilla-central/source/layout/base/PositionedEventTargeting.cpp#379
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.