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

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

XMLWordPrintable

      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);

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

              Created:
              Updated:
              Resolved:
              Imported: