User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040704 Firefox/0.9.1 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1 When using a mouse with more than 7 buttons, firefox generates a left mouse button event for buttons >= 8 instead of simply ignoring the originating button press. Could you please include the attached patch to correct this behaviour? I'm using a Logitech mouse (with the evdev mouse driver) which features autoscrolling for buttons 9 and 10; it generates additional wheel button events (4/5). While "scrolling" with these buttons, firefox adds left button events which renders it unusable. Reproducible: Always Steps to Reproduce: 1. With xev (part of XFree86), check that your mouse generates ButtonPress/ButtonRelease events with "button" >= 8. 2. View any webpage. 3. Click any of the mouse buttons generating button events >= 8. Actual Results: Firefox acts as if the left mouse button (button 1) has been pressed, for example marking text on a webpage or executing a hyperlink. Expected Results: Mouse button events >= 8 should simply be ignored.
Created attachment 152495 [details] [diff] [review] Explicitly handle NS_MOUSE_LEFT_BUTTON_DOWN event
Assignee: firefox → blizzard
Component: General → GFX: Gtk
Product: Firefox → Browser
QA Contact: firefox.general → ian
Version: unspecified → Trunk
Comment on attachment 152495 [details] [diff] [review] Explicitly handle NS_MOUSE_LEFT_BUTTON_DOWN event Except now eventType will be undefined for anything other than 1 2 or 3 events. You want to set eventType to NS_EVENT_NULL with an early return I think.
Attachment #152495 - Flags: review?(caillon) → review-
Created attachment 153807 [details] [diff] [review] Return early on button events != 1|2|3 Does this solve the problem in a correct manner? If I presume correctly, assigning NS_EVENT_NULL to eventType would become redundant in this case.
Nope, this is still a problem in both Mozilla 1.7.11 and Deer Park beta 1 on Fedora development. The scroll buttons on my MX1000 still activate any hyperlinks that might be in their way.
Created attachment 212732 [details] [diff] [review] Return early on button events [^123] Would you please reconsider this bug? Events for mice with more than 7 logical buttons are still handled inappropriately in both the current firefox release (v184.108.40.206) and CVS.
Assignee: blizzard → nobody
Component: GFX: Gtk → Widget: Gtk
QA Contact: ian → gtk
Created attachment 273825 [details] [diff] [review] Don't send events for unknown buttons I have a MX1000 also. :)
Checking in widget/src/gtk2/nsWindow.cpp; /cvsroot/mozilla/widget/src/gtk2/nsWindow.cpp,v <-- nsWindow.cpp new revision: 1.224; previous revision: 1.223 done
Status: ASSIGNED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.