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

Bug 473851

Summary: Vertical scroll wheel does not work in Compare With view
Product: [Eclipse Project] Platform Reporter: Joshua Wilson <javajoshw>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, akurtakov, alkazako, eric.julien+eclipse, kvileid, mbooth, mistria, nobody, rzhilkibaev, snjezana.peco, sptaszkiewicz, theo.cleminson, thomas.mortagne, ustimenko.alexander, xixiyan, zanetu, zap
Version: 4.5.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Joshua Wilson CLA 2015-07-29 10:54:54 EDT
To reproduce:

1) using the Ctr key, select 2 files
2) right click on one of them and select "Compare With" -> "Each Other"
3) try to use mouse wheel or 2-fingers on touch pad

I'm unable to scroll vertically. My mouse allows horizontal scrolling and that work. I can scroll normally everywhere else too. 

I did just find that if I hold down the Ctl key I can scroll. So that is a good work around but bad in practice.

I'm on 64bit Fedora 22.
Comment 1 Wiktor Nizio CLA 2015-10-07 05:46:18 EDT
Actually I cannot reproduce it in Ubuntu 15.04, although I can in Ubuntu 15.10 beta. Both are running Eclipse 4.5.1.

It may have to do with the way scrollbar is displayed in 15.10. Compare with bug #26902 comment 7: "The problem was that GtkScrolledWindow will not send scroll events if the scrollbars are hidden."
Comment 2 Wiktor Nizio CLA 2015-10-08 05:41:38 EDT
Two other possible workarounds:

1) Move mouse pointer all the way to the right, so that it covers the scroll bar. Then wheel works without pressing Ctrl.
2) Instead of doing the above, go to Preferences->General->Compare/Patch->Text Compare and uncheck "Synchronize scrolling between panes in compare viewers". Now vertical scroll with a mouse wheel works in a normal way, although you are only able to scroll one pane at a time.
Comment 3 Alexander Kurtakov CLA 2015-11-18 02:44:22 EST
Would you please try 4.6 M3 ? If you have invisble scrollbars it might be the same fix as for bug 479580 .
Comment 4 Wiktor Nizio CLA 2015-11-18 03:22:52 EST
It's okay in Eclipse Neon M3. The scrollbars are visible .
Comment 5 Wiktor Nizio CLA 2015-11-18 03:38:02 EST
I submitted bug 482447 for Java editor. In Java I can scroll the screen both with keys and mouse wheel, but the scroll bar is flickering, although visible for the most part.
Comment 6 tc7 tc7 CLA 2016-01-03 18:06:45 EST
I too experience this problem - lack of scroll wheel function in compare view.
The work-arounds listed by  Wiktor Nizio work for me.

OS: Ubuntu 15.10 (Wily)

Eclipse Java EE IDE for Web Developers.
Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200
Comment 7 Thomas Mortagne CLA 2016-03-21 12:38:52 EDT
Same issue here on Ubuntu 15.10 64bit and Eclipse Mars.2 (4.5.2).
Comment 8 Thomas Mortagne CLA 2016-03-21 12:41:02 EDT
Using the wheel with Ctrl key indeed works well.
Comment 9 Alexander Ustimenko CLA 2016-03-28 17:50:47 EDT
Also bug gone when you not use use GTK3:

env UBUNTU_MENUPROXY=0 SWT_GTK3=0 eclipse-4.5-mars2-php/eclipse
Comment 10 Szymon Ptaszkiewicz CLA 2016-03-29 04:05:35 EDT
(In reply to Alexander Ustimenko from comment #9)
> Also bug gone when you not use use GTK3:
> 
> env UBUNTU_MENUPROXY=0 SWT_GTK3=0 eclipse-4.5-mars2-php/eclipse

Thanks for checking this! Moving to SWT for further investigation.
Comment 11 Xi Yan CLA 2018-06-29 13:27:59 EDT
I cannot reproduce the issue on GTK3.22. Please reopen this ticket if the issue reoccurs.