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

Bug 355352

Summary: [Table][Tree] DefaultSelection events firied when clicking different cells
Product: [RT] RAP Reporter: Tim Buschtoens <tbuschto>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jens.borrmann, tbuschto
Version: 1.5   
Target Milestone: 1.5 M2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch for HEAD none

Description Tim Buschtoens CLA 2011-08-22 05:35:42 EDT
Usually a double click is only fired when clicking the same pixel twice. However the table and tree are allowing the mouse to be moved within an item, e.g. on different cells, which can can cause unwanted doubleclick events.
Comment 1 Tim Buschtoens CLA 2011-08-23 06:06:00 EDT
Created attachment 201984 [details]
patch for HEAD

This checks the horizontal offset to be no more than +/- 8 pixels. With this value its unlikely to hit two different cells in a short enough time, but still possible to execute a doubleclick on a touch-device such as iPad.
Comment 2 Tim Buschtoens CLA 2011-08-23 06:07:12 EDT
Commited patch to HEAD.
Comment 3 Tim Buschtoens CLA 2011-08-23 06:57:27 EDT
Patch committed to v14_Tree_Table_Merge branch also.
Comment 4 Tim Buschtoens CLA 2011-08-30 04:00:57 EDT
Apparently its still possible to produce "wrong" doubleclicks, even across larger horizontal and vertical distances.
Comment 5 Tim Buschtoens CLA 2011-09-26 05:44:15 EDT
The original fix only solved the issue for DefaultSelection events, not actual doubleclick events. However, since this is a global issue, i opend another bug for this: Bug 358858