eclipsesource / papyrus-gefx

A new Editor kind for Papyrus, based on GEFx and GMF Runtime
0 stars 2 forks source link

[Interaction] MouseScroll no longer works after clicking anywhere #41

Open CamilleLetavernier opened 5 years ago

CamilleLetavernier commented 5 years ago

MouseScroll is used to move the viewport or scroll the palette.

Since the migration to Eclipse 2018-12 / JavaFX 11, MouseScroll stops working as soon as we press any mouse button. It remains broken until the diagram is reopened

CamilleLetavernier commented 5 years ago

The bug seems to appear somewhere in FXCanvas: the mouse scroll event is properly dispatched to FXCanvas, but the FXCanvas' #registerEventListeners() filters the event out.

It seems to be caused by the #gestureActive flag, that is set to true on mouse click and never reset to false, because the SWT GestureEvent[detail=SWT.GESTURE_END] is never received (Nor sent, apparently; it could be a bug in SWT; maybe specific to Linux/GTK?)

SunDapeng-RDB commented 2 years ago

@CamilleLetavernier I have the same issue, is there any workaround?

CamilleLetavernier commented 2 years ago

Hi,

Not that I'm aware of, unfortunately. I haven't used JavaFX in SWT for a while, I don't know if there's been any change on this recently.