Community
Participate
Working Groups
Ive used textpad for a long time and they had horizontal scrolling with ctrl mousewheel scroll. This is so usefull! I'm missing this in eclipse!
This is not something I'd hack on top of StyledText. Moving to SWT for comment.
Personally I think the application should decide what to do with ctrl+mouse_wheel. I've seen different options, one can use ctrl + mouse wheel to: 1. increase/decrease the size of the font (zoom). 2. horizontal scrolling 3. back/forward behaviour Dani, it should be okay for you to implement this on top of StyledText. All you need to do is to set doit to false when control is down and implement you own action. I'm moving this back to JDT-Text, I feel that StyledText is not the right place for this (the behaviour is too generic for us).
For horizontal scrolling try a mouse with a tilt wheel. I admit, it takes a little training, to get used to, but nowadays it works quite well for me. Otherwise Felipe is right: Ctrl-mouse wheel is already taken by zoom in browsers and I personally would prefer Eclipse should drop its "fast scroll" in favor of the zoom. But this depends on bug 84776.
I so need this implemented - I would say the majority don't have tilt wheel mouses or horizontal scrolling functionality in their touchpad and so would want this ability. Rather then worrying what other programs do or what the functionality should be how about allowing the key modifier be specified and this functionality off by default - same can be done for the zoom functionality.
Working work around for horizontal scrolling here: http://stackoverflow.com/questions/2119184/horizontal-scrolling-with-the-scrollwheel-in-eclipse/21420631#21420631 or here: http://danielsokolowski.blogspot.ca/2014/01/eclipse-ide-horizontal-scrolling-with.html
I'd like to add that with that horizontal scrolling does not work in all windows, I believe this might be an Eclipse limitation. Using Eclipse's 'CSS Spy' to identify widgets I can confirm that 'StyledText (org.eclipse.swt.custom)' does not horizontal scroll but 'Tree (org.eclipse.swt.widgets)' does.
I would also suggest the key modifier be SHIFT instead of CTRL which is more common with zoom now; or at least configurable.
I'd be nice to have it on fedora/redhat linux. I'd be happy to test if a fix/enchancement comes around. (I'm in the eclipse/CDT dev deam).
'Navigator' view supports horizontal scrolling but 'Project Explorer' does not as per 'Comment 5" (https://bugs.eclipse.org/bugs/show_bug.cgi?id=201984#c5)
Related bugs for missing horizontal scrolling with 4-way wheels on Windows: Bug 444388: Trees with a MeasureItem listener (e.g. Package Explorer, Project Explorer, but not Navigator) Bug 444851: Canvas (e.g. StyledText, which is used in text editors)
On linux, the workaround is described here: http://askubuntu.com/questions/404737/horizontal-scrolling-in-firefox-to-shiftmouse-scroll-instead-of-back-forward
(In reply to Holger Klene from comment #3) > For horizontal scrolling try a mouse with a tilt wheel. I admit, it takes a > little training, to get used to, but nowadays it works quite well for me. > > Otherwise Felipe is right: Ctrl-mouse wheel is already taken by zoom in > browsers and I personally would prefer Eclipse should drop its "fast scroll" > in favor of the zoom. > > But this depends on bug 84776. But even for mouse with tilt wheel horizontal scrolling isn't working... The horizontal scroll feature of the mouse is working in other applications.
Just to update this issue with a current comment It still dosn't work. Used Version: 2023-06 (4.28.0) Build id: 20230608-1333 on Windows 10 tested with tilt wheel of a MX Master 3. I really really would appreciate that functionallity to come soon. Thanks a lot.