Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8143596

FXCanvas does not forward touch gestures to embedded scene

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      other

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anyssen Alexander Nyssen
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: