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

Mac: Mouse press events from robot are posted by wrong coordinates

    Details

      Description

      1. Run the app (attached).
      The app shows whatever mouse events happen on the two colored squares. Move or click mouse and you sill see.
      2. Push "test" button
      in the output I see:
      BLUE MOVED (100, 150) ...
      BLUE PRESSED (110, 160) ...
      3. If not - repeat a few times

      Here is the robot code:
                                          Robot robot = com.sun.glass.ui.Application.GetApplication().createRobot();;
                                          robot.mouseMove(100, 150);
                                          robot.mousePress(1);
                                          robot.mouseRelease(1);
                                          robot.mouseMove(110, 160);

        Attachments

        1. InputApp.java
          11 kB
          Aleksandre Iline
        2. InputApp.java
          10 kB
          Aleksandre Iline

          Issue Links

            Activity

              People

              • Assignee:
                pchelko Petr Pchelko (Inactive)
                Reporter:
                shurailine Aleksandre Iline
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: