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.

      1. JDK-8143596.09_09_16.patch
        40 kB
        Alexander Nyssen
      2. JDK-8143596.17_08_16.patch
        36 kB
        Kevin Rushforth
      3. JDK-8143596.18_08_16.patch
        36 kB
        Kevin Rushforth

        Issue Links

          Activity

          webbuggrp Webbug Group created issue -
          bvaidya Balchandra Vaidya made changes -
          Field Original Value New Value
          Project Java Incidents [ 10301 ] JDK [ 10100 ]
          Key JI-9026690 JDK-8143596
          Workflow JBS Incident Workflow [ 4861479 ] JBS Workflow [ 4861479 ]
          Component/s javafx [ 11900 ]
          Component/s javafx [ 11901 ]
          Affects Version/s 8u66 [ 17302 ]
          Affects Version/s 8u66 [ 17504 ]
          bvaidya Balchandra Vaidya made changes -
          Subcomponent other [ 1402 ] other [ 1385 ]
          kcr Kevin Rushforth made changes -
          Summary FXCanvas does not forward touch gestures to embedded scene. FXCanvas does not forward touch gestures to embedded scene
          vdyakov Victor Dyakov made changes -
          Assignee Kevin Rushforth [ kcr ]
          kcr Kevin Rushforth made changes -
          Fix Version/s 9 [ 14949 ]
          Labels webbug jdeps-jdkinternals nicetohave webbug
          kcr Kevin Rushforth made changes -
          Status New [ 10000 ] Open [ 1 ]
          kcr Kevin Rushforth made changes -
          Fix Version/s tbd_major [ 11972 ]
          Fix Version/s 9 [ 14949 ]
          kcr Kevin Rushforth made changes -
          Assignee Kevin Rushforth [ kcr ]
          aroy Abhijit Roy made changes -
          Link This issue duplicates JDK-8161282 [ JDK-8161282 ]
          kcr Kevin Rushforth made changes -
          Link This issue relates to JDK-8161282 [ JDK-8161282 ]
          kcr Kevin Rushforth made changes -
          Link This issue duplicates JDK-8161282 [ JDK-8161282 ]
          kcr Kevin Rushforth made changes -
          Attachment JDK-8143596.17_08_16.patch [ 62419 ]
          kcr Kevin Rushforth made changes -
          Assignee Kevin Rushforth [ kcr ]
          kcr Kevin Rushforth made changes -
          Link This issue relates to JDK-8156491 [ JDK-8156491 ]
          kcr Kevin Rushforth made changes -
          Fix Version/s 9 [ 14949 ]
          Fix Version/s tbd_major [ 11972 ]
          Priority P4 [ 4 ] P3 [ 3 ]
          kcr Kevin Rushforth made changes -
          Attachment JDK-8143596.18_08_16.patch [ 63007 ]
          kcr Kevin Rushforth made changes -
          Link This issue relates to JDK-8165562 [ JDK-8165562 ]
          kcr Kevin Rushforth made changes -
          Affects Version/s 9 [ 14949 ]
          anyssen Alexander Nyssen made changes -
          Link This issue duplicates JDK-8088262 [ JDK-8088262 ]
          kcr Kevin Rushforth made changes -
          Assignee Kevin Rushforth [ kcr ] Alexander Nyssen [ anyssen ]
          anyssen Alexander Nyssen made changes -
          Attachment JDK-8143596.09_09_16.patch [ 63108 ]
          azvegint Alexander Zvegintsev made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          anyssen Alexander Nyssen made changes -
          Link This issue relates to JDK-8173852 [ JDK-8173852 ]

            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: