Closed Bug 524495 Opened 17 years ago Closed 17 years ago

Chrome buttons do not always recognize tapping

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Maemo
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stechz, Assigned: vingtetun)

Details

(Whiteboard: formfill)

Attachments

(1 file, 3 obsolete files)

This is particularly bad on the form filler, but I've noticed it on the restart button and back/forward buttons as well. Normally the second click gets noticed, but on form fill I've had next and previous stop working completely. Noticed on the N900.
tracking-fennec: --- → ?
Whiteboard: formfill
Attached patch wip (obsolete) — — Splinter Review
There is a bunch of different bugs here. Form filler: I guess the problem is not really the click but the fact that the disabled state of the buttons is hard to see : bug 524206 Back/Forward/Close tab/...: Actually we can enter into a pan mode here which is non-relevant because we never want to directly pan the controlsScrollbox Reload/Stop/Favicon: That's some problem related to the size of the elements or the events dispatching The wip correct all the problems I have found for these.
Assignee: nobody → 21
Tabs still stay difficult to close, I suppose that's a problem with the events target but I still need to check it.
Attached patch Patch (obsolete) — — Splinter Review
This one should help to close the tab, previously the target of the mousedown/mouseup were different which prevent clicking to work.
Attachment #409641 - Attachment is obsolete: true
Attachment #409645 - Flags: review?(mark.finkle)
Comment on attachment 409645 [details] [diff] [review] Patch >diff -r efdbabfeebb8 chrome/content/InputHandler.js >+ // prevent direct panning on the controls scrollbox >+ if (targetScrollInterface == Browser.controlsScrollboxScroller) >+ targetScrollInterface = null; >+ This isn't so modular or extensible. What if the handler just didn't do drag stuff if dragStart returned false?
Comment on attachment 409645 [details] [diff] [review] Patch Unasking review, because Stechz is right, the code add to prevent panning in InputHandler.js is too bad, and in fact I found some other part of the UI where we need to handle the case where no scroll is possible and I don't want to add an exception to all of them.
Attachment #409645 - Flags: review?(mark.finkle)
Attached patch Patch (obsolete) — — Splinter Review
Benjamin, what do you think of that?
Attachment #409645 - Attachment is obsolete: true
Comment on attachment 409895 [details] [diff] [review] Patch >diff -r 5d2d8a352d68 chrome/content/browser.xul > <box id="identity-box" > onclick="getIdentityHandler().handleIdentityButtonEvent(event);" > onkeypress="getIdentityHandler().handleIdentityButtonEvent(event);"> >- <box id="urlbar-image-box"> >+ <box id="urlbar-image-box" mousethrough="always"> I would have thought the click event would bubble to the <box> without any need for mousethrough="always" > <hbox id="urlbar-icons" mode="view"> >- <toolbarbutton id="tool-reload" class="urlbar-cap-button" command="cmd_reload"/> >- <toolbarbutton id="tool-stop" class="urlbar-cap-button" command="cmd_stop"/> >- <toolbarbutton id="tool-go" class="urlbar-cap-button" command="cmd_go"/> >+ <toolbarbutton id="tool-reload" class="urlbar-cap-button" command="cmd_reload" flex="1"/> >+ <toolbarbutton id="tool-stop" class="urlbar-cap-button" command="cmd_stop" flex="1"/> >+ <toolbarbutton id="tool-go" class="urlbar-cap-button" command="cmd_go" flex="1"/> Just add a rule to the urlbar-cap-button CSS class -moz-box-flex: 1 >diff -r 5d2d8a352d68 chrome/content/tabs.xml > <xul:hbox left="0" top="10" height="64" align="center" onclick="document.getBindingParent(this)._close()"> >- <xul:image anonid="close" class="documenttab-close"/> >+ <xul:image anonid="close" class="documenttab-close" mousethrough="always"/> Same thing here r- for the css chnage
Attachment #409895 - Flags: review-
Much better!
Attached patch Patch — — Splinter Review
If needed i can dive to check why the event.detail is at 0 in these case (to try to use something else than mousethroug)
Attachment #409895 - Attachment is obsolete: true
Attachment #410257 - Flags: review?(webapps)
Attachment #410257 - Flags: review?(mark.finkle)
Attachment #410257 - Flags: review?(mark.finkle) → review+
Comment on attachment 410257 [details] [diff] [review] Patch I'll let Ben consider if adding a method to the Dragger interface is worth it
Attachment #410257 - Flags: review?(webapps) → review+
Comment on attachment 410257 [details] [diff] [review] Patch Yep, I think it's a good idea.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
verified FIXED on builds: Mozilla/5.0 (X11; U; Linux armv7l; Nokia N900; en-US; rv:1.9.2b3pre) Gecko/20091111 Firefox/3.6b2pre Fennec/1.0b5 and Mozilla/5.0 (X11; U; Linux armv6l; Nokia N8xx; en-US; rv:1.9.3a1pre) Gecko/20091111 Firefox/3.7a1pre Fennec/1.0b5
Status: RESOLVED → VERIFIED
Flags: in-litmus?
To some light into this, the user should be able to mousedown on a chrome button, hover over to another part of the screen so that the button comes out of the pressed state. Then, have the user, on the same hover (never performing a mouseup), go back to the button. There the button should go back to a pressed state and performing a mouseup will still click the button.
Flags: in-litmus? → in-litmus-
tracking-fennec: ? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: