Closed Bug 515609 Opened 15 years ago Closed 15 years ago

listbox select item on mouse down

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: vingtetun, Assigned: vingtetun)

Details

Attachments

(1 file)

Since bug 510857 has landed, Fabrice has noticed that a mousedown on an item of a richlistbox select the target row :/

After searching a bit I've found that the code which cause this behavior is:
 * http://mxr.mozilla.org/mozilla-central/source/toolkit/content/widgets/listbox.xml#1003

I see 4 workaround:
 1. backout bug 510857 - but we return to unpressed buttons
 2. Prevent the mousedown/mouseup to be dispatched as we use to do before bug 510857 - basically, same as choice 1
 3. Do a binding which override the listitem on our side - crap, we use something unusual
 4. Tweak the listitem binding for avoid this behavior in mobile

Personally i would prefer the last because:
 - I like the idea to dispatched mousedown/mouseup to the world, this way, extension developers can hack around.
 - Usually reacting on mousedown didn't make sense in Fennec

Nit: maybe choice 4 is a bit overkill
Comment on attachment 399764 [details] [diff] [review]
Patch v0.1

Normally, I don't favor overriding toolkit bindings. But this is simple and we really don't want action on mousedown, including drags.
Attachment #399764 - Flags: review?(mark.finkle) → review+
pushed:
https://hg.mozilla.org/mobile-browser/rev/331cfce379df
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
bugspam
Assignee: nobody → 21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: