Open Bug 1231221 Opened 9 years ago Updated 2 years ago

Incorrect button parameter in mouse events for middle button

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

42 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: firefox, Unassigned)

Details

Attachments

(1 file)

Attached image firefox_error.png
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.13 Safari/537.36

Steps to reproduce:

Started web app that uses middle mouse button down, drag and up events for panning (http://sketch.openingdesign.com:9004 [currently logs all mouse down, drag, up and dblclick events to console]). Tried to pan by holding down middle mouse button with cursor on canvas and dragging.


Actual results:

Did not pan as the button parameter in the MouseMove event is incorrect (value of 0 [left button] instead of 1).
(As a note, in v38, both the MouseMove and MouseUp events had the incorrect value of .button. In v42, the MouseUp event value is now correct)


Expected results:

Canvas should pan. Middle button mouse events should have a value of 1 for the button parameter.
Component: Untriaged → Event Handling
Product: Firefox → Core
Component: Event Handling → User events and focus handling
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: