Bug 567219 - Closing more than one File without Moving Mouse causes File to be Maximized
Summary: Closing more than one File without Moving Mouse causes File to be Maximized
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.16   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 13:52 EDT by Marcel Ablasser CLA
Modified: 2020-11-01 11:28 EST (History)
1 user (show)

See Also:


Attachments
Screen recording of observed behaviors (1.18 MB, video/x-ms-wmv)
2020-09-21 13:52 EDT, Marcel Ablasser CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.