|
Duplicate :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
FULL PRODUCT VERSION :
ADDITIONAL OS VERSION INFORMATION :
Non OS-specific problem.
A DESCRIPTION OF THE PROBLEM :
As reported in JDK-8088262 already, FXCanvas does not forward any touch gesture events to the embedded scene.
The Eclipse GEF project provides an FXCanvasEx to compensate this problem (http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.swt/src/org/eclipse/gef4/fx/swt/canvas/FXCanvasEx.java).
It internally uses a modified version of the helper class (http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.fx.swt/src/org/eclipse/gef4/fx/swt/gestures/SwtToFXGestureConverter.java) mentioned by Jan K��hnlein in JDK-8088262.
However, this helper class accesses JDK internal API, so that the workaround will probably not work with Jigsaw:
bin -> javafx.graphics
org.eclipse.gef4.fx.swt.gestures.SwtToFXGestureConverter (bin)
-> com.sun.javafx.tk.TKSceneListener JDK internal API (javafx.graphics)
org.eclipse.gef4.fx.swt.gestures.SwtToFXGestureConverter$3$1 (bin)
-> com.sun.javafx.tk.TKSceneListener JDK internal API (javafx.graphics)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Have full support for forwarding touch gesture events to the embedded scene within FXCanvas.
ACTUAL -
No touch gesture events are forwarded by FXCanvas.
REPRODUCIBILITY :
This bug can be reproduced always.
|