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

GTK: Robot wheel sends events in the wrong direction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Environment:

      Linux desktop

      Description

      The code in GlassRobot.c to simulate a mouse wheel event has:

      int button = amt < 0 ? 4 : 5;

      This is wrong and fails rt-closed/toys/GlassRobotTest. In X, button 4 scrolls up and button 5 scrolls down. This should be:

      int button = amt < 0 ? Button5 : Button4;

        Attachments

          Activity

            People

            Assignee:
            azvegint Alexander Zvegintsev
            Reporter:
            dblaukop Daniel Blaukopf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: