Closed Bug 586247 Opened 14 years ago Closed 5 years ago

Fennec smart tapping region should be dynamic according to finger touch region

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ilkka.otsala, Unassigned)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/8.04 (hardy) Firefox/3.6.8
Build Identifier: Mozilla/5.0 (X11; Linux armv7I; rv:2.0b3pre) Gecko/20100727 Firefox/4.0b3pre Fennec/2.0a1pre

If the user taps on screen with large area of finger the the tapping rectangle should be also larger.

Reproducible: Always

Steps to Reproduce:
1. Have a Fennec running on device with web page containing e.g. one link 
2. Tap on screen so that large area of screen gets covered by finger and the link is located near the edge of tapping area

Actual Results:  
Link doesn't get activated.

Expected Results:  
Link should get activated if it gets under the finger.

Smart tapping rectangle is currently static and the area that finger covers has no effect on tapping. Making tapping region dynamic according to touch rect, selecting links gets easier.
This patch contains the QT version of fetching the size of touch region and setting the values to browser.ui.touch.dyn.* preferences where Fennec can easily read those.
Attachment #465580 - Flags: review?(mark.finkle)
This patch contains the using of dynamic smart tapping rectangle instead of static one. The dynamic version can be disabled by setting the browser.ui.touch.dyn.size to zero in preferences.
Attachment #465582 - Flags: review?(mark.finkle)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Ilkka, can we get a testcase for your scenario? I'm having a difficult time
confirming this bug.
Is the fix only for qt?
(In reply to comment #3)
> Ilkka, can we get a testcase for your scenario? I'm having a difficult time
> confirming this bug.
This is an enhancement to smart tapping functionality. The basic idea of smart tapping is described in http://starkravingfinkle.org/blog/2010/05/smart-tapping-in-mobile-firefox/
Currently the smart tapping area is static, and this enhancement makes it dynamic so that if the finger covers larger area, the smart tapping area is also larger. 

(In reply to comment #4)
> Is the fix only for qt?
Yes, this patch contains only fix for QT.
Depends on: 584225
Blocks: 584225
No longer depends on: 584225
Attachment #465580 - Flags: review?(mark.finkle) → review?(romaxa)
I really not sure about this patch and way of determining touch rectangle using pref set.... 

Also we have pressure value for dom event.
see http://mxr.mozilla.org/mozilla-central/source/widget/src/gtk2/nsWindow.cpp#2659
see http://mxr.mozilla.org/mozilla-central/source/widget/src/gtk2/nsWindow.cpp#2712

You can store pressure value there

also we have layout API for getting list of nodes from rect:
https://bugzilla.mozilla.org/show_bug.cgi?id=489127
tracking-fennec: --- → ?
Comment on attachment 465580 [details] [diff] [review]
Fix proposal for xulrunner

I think we should create new fix according to 586247#c6
Attachment #465580 - Flags: review?(romaxa)
we'll take this if it becomes ready
tracking-fennec: ? → 2.0-
Whiteboard: [fennec-4.1?]
tracking-fennec: - → 7+
Whiteboard: [fennec-4.1?]
tracking-fennec: 7+ → ---
Attachment #465582 - Flags: review?(mark.finkle)
Closing all opened bug in a graveyard component
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: