| Summary: | Logo example as Eclipse view, does not scroll left/right | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Frank Benoit <frank.rene.benoit> |
| Component: | GEF MVC | Assignee: | 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
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. 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. |