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

GTK: Robot wheel sends events in the wrong direction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • Linux desktop

      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;

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

              Created:
              Updated:
              Resolved:
              Imported: