Bug 562499 - [win32] Tree with columns does not scroll with horizontal mouse wheel
Summary: [win32] Tree with columns does not scroll with horizontal mouse wheel
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.15   Edit
Hardware: PC Windows 10
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 562711 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-04-26 18:40 EDT by Claudiu C CLA
Modified: 2021-06-10 12:19 EDT (History)
4 users (show)

See Also:


Attachments
A picture with explanations (329.43 KB, image/jpeg)
2020-04-26 18:40 EDT, Claudiu C CLA
no flags Details
The preference window (367.48 KB, image/jpeg)
2020-04-26 18:40 EDT, Claudiu C CLA
no flags Details
A demo project with long names and values. (1.73 KB, application/x-zip-compressed)
2020-04-26 18:42 EDT, Claudiu C CLA
no flags Details
Project explorer with two scrollbars (9.53 KB, image/png)
2020-04-28 02:36 EDT, Rolf Theunissen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claudiu C CLA 2020-04-26 18:40:19 EDT
Created attachment 282569 [details]
A picture with explanations

Short description:

On Windows 10, the horizontal scroll does not work on some areas (panels) using a laptop touchpad or touch mouse from Eclipse IDE for Enterprise Java Developers.

Note: On Ubuntu 16.04 and 18.04 the horizontal scroll is working perfectly.

Requirements:
- a laptop which support horizontal scroll using fingers on touchpad area;
- or a mouse which support horizontal scroll;
- OS: Windows 10

I use:
- laptops: Lenovo T590 and Asus Rog GL552VX
- mouse: Logitech T620 touch mouse.
- OS: Windows 10 Enterprise.

I noticed that the horizontall scroll is working properly on:
- Help panel;
- left navigation panel from Preferences.
Comment 1 Claudiu C CLA 2020-04-26 18:40:53 EDT
Created attachment 282570 [details]
The preference window
Comment 2 Claudiu C CLA 2020-04-26 18:42:50 EDT
Created attachment 282571 [details]
A demo project with long names and values.
Comment 3 Rolf Theunissen CLA 2020-04-27 08:20:42 EDT
Furthermore:
- Horizontal scrolling does not work for text editors
- Scrolling horizontally in the Package explorer and Outline, results in the widget scrolling vertically. The vertical scrollbar is only updated when the mouse is moved.
Comment 4 Rolf Theunissen CLA 2020-04-27 13:01:56 EDT
I can't find a common cause for this issue, the following parts:

Don't work correctly:
- Java Outline, incorrect scroll direction
- Manifest pages, no horizontal scrolling (widgets inside the pages work correctly)

Do work correctly:
- Manifest outline
- Plug-ins view

All parts seem to have an (extended) TreeViewer as Control.

The default behavior seems that the horizontal scroll falls back to the vertical scroll if the view is sufficient wide. Somehow the fallback is always enabled.
Comment 5 Rolf Theunissen CLA 2020-04-28 02:36:29 EDT
Created attachment 282588 [details]
Project explorer with two scrollbars

The horizontal scrolling does work when mixed fonts and colors is disabled:
Preferences > Appearance > Use mixed fonts and colors for labels

However, this results in having two scrollbars in the Project Explorer, see attached screenshot.
Comment 6 Rolf Theunissen CLA 2020-04-28 02:53:26 EDT
The horizontal scrolling for the text editors has been an issue for a long time, Bug 517311 and Bug 205137.
Comment 7 Claudiu C CLA 2020-04-28 06:36:22 EDT
(In reply to Rolf Theunissen from comment #5)
> Created attachment 282588 [details]
> Project explorer with two scrollbars
> 
> The horizontal scrolling does work when mixed fonts and colors is disabled:
> Preferences > Appearance > Use mixed fonts and colors for labels
> 
> However, this results in having two scrollbars in the Project Explorer, see
> attached screenshot.

Hi Rolf,

Thank you for the workaround.
I noticed that on the Outline panel the horizontal scroll is working also, as you mentioned, only the panels with text editing support does not allow horizontal scroll from tracking pad or mouse touch.

Regarding the duplicating horizontal scrollbars I noticed that without a theme the issue it disappeared.

Chan you please check if disable theming the two scroll bars still appear?

Preferences -> Appearance -> Uncheck the option: "Enable theming".
Restart the Eclipse

Kind regards,
Claudiu
Comment 8 Rolf Theunissen CLA 2020-05-01 16:11:42 EDT
On SWT win32, scrolling by horizontal mouse wheel is not supported for non-native widgets, see Bug 205137. This includes all text editors.

Keeping this bug for scrolling in the Tree widget.

The tree does respond to the horizontal mouse wheel when there are no columns. When columns are added, a new parent is inserted, this breaks horizontal scrolling. This also causes the two scrollbars to show up under some conditions. This is reproducible in Snippet232, it does not scroll with horizontal mouse wheel, when the columns are removed it does scroll.
Comment 9 Rolf Theunissen CLA 2020-05-01 16:12:09 EDT
*** Bug 562711 has been marked as a duplicate of this bug. ***
Comment 10 Rolf Theunissen CLA 2020-05-01 16:34:02 EDT
Also this might be a duplicate of Bug 444388 (stalebug) or it is related. Bug 320092 (stalebug) might have the same root cause.
Comment 11 Claudiu C CLA 2020-05-05 15:53:01 EDT
I noticed that the title was changed to include the prefix [win32].
I reproduced the issue on a x64 OS, I have a Windows 10 64-bit OS.
Comment 12 Rolf Theunissen CLA 2020-05-06 01:59:38 EDT
(In reply to Claudiu C from comment #11)
> I noticed that the title was changed to include the prefix [win32].
> I reproduced the issue on a x64 OS, I have a Windows 10 64-bit OS.

It is about win32 API, which is applicable for both 32-bit and 64-bit Windows. This is opposed to old win16 API.
Besides, Eclipse is currenlty only supported on 64-bit OS.
Comment 13 Claudiu C CLA 2021-06-10 12:19:44 EDT
Hi Rolf,

My comment regarding the title was made because I wanted to clarify that was not my original title.
And I was afraid that could be wrong.
But now it's clear for me what was the reason, thank you for the clarification.

Best wishes,
Claudiu