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

Bug 483742

Summary: Logo example as Eclipse view, does not scroll left/right
Product: [Tools] GEF Reporter: Frank Benoit <frank.rene.benoit>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.wienand, nyssen
Version: unspecified   
Target Milestone: 4.0.0 / 3.11.0 (Neon) M5   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Frank Benoit CLA 2015-12-06 05:00:44 EST
The scrolling via pressing the mouse wheel left/right works in the standalone logo example. 

As eclipse view, this is not working.
Comment 1 Matthias Wienand CLA 2016-01-26 04:21:22 EST
When embedding JavaFX into SWT, the FXCanvas is responsible for forwarding SWT events to JavaFX. The vertical mouse wheel events are correctly forwarded by the FXCanvas. However, it seems like horizontal mouse wheel events are not forwarded. We already provide the FXCanvasEx, an extension of FXCanvas that forwards SWT gesture events to JavaFX (which is missing in the original FXCanvas). Within the FXCanvasEx, the horizontal mouse wheel events also have to be forwarded to JavaFX to fix the issue.
Comment 2 Matthias Wienand CLA 2016-01-26 07:24:21 EST
I implemented forwarding of SWT.MouseHorizontalWheel events to JavaFX (as ScrollEvent.SCROLL) within the SwtToFxGestureConverter, which I refactored and renamed to SwtToFxEventConverter. I tested the functionality on Linux and Mac OS. The code is published on the master branch, therefore, I resolve this ticket as fixed for 3.11.0M5. Feel free to reopen this ticket if you encounter any problems with this solution.