Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322438

Summary: [Browser-Webkit] Mouse events have wrong button values (0,1,2 instead of 1,2,3)
Product: [Eclipse Project] Platform Reporter: Christopher Deckers <chrriis>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 3.6Flags: Silenio_Quarti: review+
Target Milestone: 3.6.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
A test that prints to the console "e.button" for a label and the browser using Webkit
none
patch none

Description Christopher Deckers CLA 2010-08-11 17:24:45 EDT
Build Identifier: SWT 3.6

When we add a mouse listener to a Browser with Webkit rendering, we receive events with wrong values for the button field.
Normal values are 1, 2 and 3 but we receive 0, 1 and 2.


Reproducible: Always

Steps to Reproduce:
1. Create a Browser.
2. Add a mouse listener that prints e.button
Comment 1 Christopher Deckers CLA 2010-08-11 17:25:38 EDT
Created attachment 176413 [details]
A test that prints to the console "e.button" for a label and the browser using Webkit
Comment 2 Grant Gayed CLA 2010-08-17 15:50:59 EDT
Created attachment 176838 [details]
patch
Comment 3 Grant Gayed CLA 2010-08-17 15:57:25 EDT
Fix released to 3.7 stream > 20100817

Requesting SSQ to review for 3.6.1.  The fix is straight-forward, low-risk to eclipse since it does not use WebKitGTK Browsers by default, and quite fundamental to WenKitGTK users.
Comment 4 Grant Gayed CLA 2010-08-18 11:58:05 EDT
fixed in the 3.6.1 stream > 20100818