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

FXCanvas needs to invert rotation angle when forwarding a gesture event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      9

      Description

      The 'angle' of a (JavaFX) RotateEvent is interpretated as "positive values for clockwise rotation", while the 'rotation' value of an SWT GestureEvent is interpreted as "negative values indicate clockwise rotation".

      To compensate this, FXCanvas would need to invert the rotation value of the source GestureEvent when computing the angle value for the target RotateEvent (within FXCanvas.sendRotateEventToFX(int, GestureEvent)), which is unfortunately not done. As a consequence, rotation angle values are inverted compared to a standalone JavaFX application.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              anyssen Alexander Nyssen
              Reporter:
              anyssen Alexander Nyssen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: