GTK: Robot wheel sends events in the wrong direction

XMLWordPrintable

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

      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;

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

              Created:
              Updated:
              Resolved:
              Imported: