Open
Bug 946731
Opened 11 years ago
Updated 2 months ago
[Cards View] It's difficult to tap the cross in the cards view
Categories
(Core :: Layout, defect, P3)
Tracking
()
NEW
People
(Reporter: julienw, Unassigned)
References
Details
Attachments
(3 files, 2 obsolete files)
127 bytes,
text/html
|
Details | |
2.29 KB,
text/html
|
Details | |
5.05 KB,
patch
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #945727 +++
STR:
* launch an app
* longpress the home button
* try to close the app pressing the cross button
Expected:
* it's easy to tap on it
Actual:
* it's difficult to tap on it.
Discussed this more with Vivien, the root cause is because the card view main container has the event listener.
This bug will be about changing the event fluffing algorithm to take the candidate frame's size into account: when the frame is bigger, it needs less event fluffing magic, and we want to find farther but smaller candidates.
I think it's wise to not block on 1.3 for this.
Reporter | ||
Updated•11 years ago
|
Component: Gaia::System::Window Mgmt → Layout
OS: Linux → Gonk (Firefox OS)
Product: Firefox OS → Core
Hardware: x86_64 → ARM
Updated•11 years ago
|
Priority: -- → P3
Reporter | ||
Comment 1•11 years ago
|
||
Here is a WIP patch. It seems to work better for me in the card view case, and not inducing any regressions.
On the Wikipedia mobile page, the top left icon works also a lot better, but I don't know exactly why ;) But I still can't trigger the "edit" icon on titles (displaying on the right when the title is opened).
Other questions that I have:
* why are width/height in nsSize signed int instead of unsigned int? Can we have negative width/height?
* what are "appunits"? Are they physical pixels, or CSS pixels, or something else?
* another approach would be to scale up the box for small elements. Would that be better/easier? (not easier for me for sure!)
Attachment #8343705 -
Flags: feedback?(21)
Comment 2•11 years ago
|
||
Comment on attachment 8343705 [details] [diff] [review]
patch v1
I like the global idea and I'm curious to see how it may work in practice. I would like to have the opinion of mbrubeck/mfinkle and roc since those may have opinions on it.
The main idea here is to help choosing a target which is close to the finger in the case where clickable target (a) is included into a big container target (b).
With the current code, the distance from (b) will be 0, and the click will always ends up in it. It sounds good in theory but in practice with the event delegation mechanism use on the web it makes it sometimes hard to click small target contained inside those big blocks.
So the question is, does it worth trying to change the weight for small clickables elements contained into a big clickable element for touch inputs (touch events and mouse events issued from a touch). Or is it too hard to achieve correctly and does not worth the risk ?
Attachment #8343705 -
Flags: feedback?(roc)
Attachment #8343705 -
Flags: feedback?(mbrubeck)
Attachment #8343705 -
Flags: feedback?(mark.finkle)
Attachment #8343705 -
Flags: feedback?(21)
Comment 3•11 years ago
|
||
Comment on attachment 8343705 [details] [diff] [review]
patch v1
This is definitely a valid problem, and this seems like a potentially reasonable solution to me.
It might make it harder to click a large target that has small targets nearby. Is there a reasonable way we could limit this to cases where the small target is contained within the large target?
An appunit is 1/72 of a px. You should document the units of the new "small surface" threshold and bonus prefs. For the other "click fluffing" prefs we use mm, which you might want to mimic for consistency.
Attachment #8343705 -
Flags: feedback?(mbrubeck) → feedback+
Comment on attachment 8343705 [details] [diff] [review]
patch v1
Review of attachment 8343705 [details] [diff] [review]:
-----------------------------------------------------------------
I agree that it sounds reasonable.
Attachment #8343705 -
Flags: feedback?(roc) → feedback+
Comment 5•11 years ago
|
||
Comment on attachment 8343705 [details] [diff] [review]
patch v1
I agree that this is a real problem. Let's hope those small targets exist for a reason, and being "tappable" is the reason.
Do we have any type of automated tests for different kinds of markup scenarios? It would be nice to know ahead of time how changes like this affect other situations.
Attachment #8343705 -
Flags: feedback?(mark.finkle) → feedback+
Reporter | ||
Comment 6•11 years ago
|
||
Taking it for now, I want to try various approachs. But if this is urgent please steal it since this won't be my main occupation this week.
Assignee: nobody → felash
Comment 7•11 years ago
|
||
I made a dumb testcase during the break.
Reporter | ||
Comment 8•11 years ago
|
||
BTW, this is really important and I have a hard time finding time to finish this... so I'll be glad if someone jumps in to finish this.
Reporter | ||
Comment 9•10 years ago
|
||
Here is a new testcase.
In Firefox, when enabling the fluffing prefs, we see very easily with the mouse when the "hover" state starts.
Reporter | ||
Comment 10•10 years ago
|
||
I see that bug 1126989 landed a patch that tries to fix this as well, but this testcase is still failing, probably because bug 1126989 focuses on the text size.
Comment 11•10 years ago
|
||
As discussed on IRC, bug 1126989 is orthogonal to this change, as it doesn't touch the heuristics used in picking the click target. It only identifies whether or not there is a cluster of links at the target, and sets a flag based on that.
Reporter | ||
Comment 12•10 years ago
|
||
It's better with the right file.
Attachment #8595965 -
Attachment is obsolete: true
Reporter | ||
Comment 13•10 years ago
|
||
Attachment #8343705 -
Attachment is obsolete: true
Reporter | ||
Comment 14•9 years ago
|
||
I don't think I'll ever move forward with this.
Feel free to close if you think it's useless.
Assignee: felash → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•