Bug 567219

Summary: Closing more than one File without Moving Mouse causes File to be Maximized
Product: [Eclipse Project] Platform Reporter: Marcel Ablasser <at.mab.coding>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3 CC: rolf.theunissen
Version: 4.16   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
Screen recording of observed behaviors none

Description Marcel Ablasser CLA 2020-09-21 13:52:22 EDT
Created attachment 284213 [details]
Screen recording of observed behaviors

Observed Behaviour:

If a user tries to close more than one file without moving the mouse, then the second file is maximized (see attached video).


Steps to Reproduce:

1. Create at least two txt files e.g. Test1.txt and Test2.txt
2. Open both files via the same editor
3. Move mouse to X of first file
4. Click on X of first file
5. Click again to try to close second file


Expected Behaviour:

Instead of maximizing it, close the file.
Comment 1 Rolf Theunissen CLA 2020-11-01 11:28:26 EST
Moving to SWT.

The clicking is detected as double click, this results in this behavior.
Similar behavior can be seen when double-clicking a close button. The first click closes the part, then a double-click is emitted that maximizes the tab-folder.


The following events happens (in Windows):
- Mouse down -> Close button is highlighted
- Mouse up -> Closes the first part
- Mouse down -> Close button is highlighted
- Mouse double-click -> Maximizes the second part
- Mouse up -> Does not close the second part; the close button is no longer under the mouse pointer

It should be prevented that the double-click is emitted when the close button is clicked.