-
Bug
-
Resolution: Fixed
-
P3
-
8u66, 9
-
x86
-
other
FULL PRODUCT VERSION :
ADDITIONAL OS VERSION INFORMATION :
Non OS-specific problem.
A DESCRIPTION OF THE PROBLEM :
As reported inJDK-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 inJDK-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.
ADDITIONAL OS VERSION INFORMATION :
Non OS-specific problem.
A DESCRIPTION OF THE PROBLEM :
As reported in
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
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.
- duplicates
-
JDK-8088262 [SWT] FXCanvas swallows almost all gesture events
-
- Closed
-
- relates to
-
JDK-8156491 Autodetect GTK version for JFX
-
- Resolved
-
-
JDK-8173852 FXCanvas needs to invert rotation angle when forwarding a gesture event
-
- Resolved
-
-
JDK-8165562 Upgrade to newer version of SWT for build/test
-
- Resolved
-
-
JDK-8161282 FXCanvas does not forward horizontal mouse scroll events to the embedded scene
-
- Resolved
-