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

Mobile: Mouse Events triggered incorrectly for Path

XMLWordPrintable

      I have a Path as shown in the screenshot and I am clicking on the lower half of the stroke inside the area highlighted in the screenshot. I expect path to trigger events but I see that the background rectangle is triggering the event, inspite of blocksMouse set to true. So looks like the bounds is off by ~10 pixels at the highlighted area and the highlighted area seem to be considered out of the Path's bounds.

      To reproduce the bug, deploy the attached app using JavaFXPackager on to the emulator and do the following -

      1. Press '1' multiple times to choose 'FILL + STROKE' fill mode
      2. Press '2' and '3' to choose appropriate fill/stroke colors
      3. Press '6' to increase the stroke width
      4. Press '8' to turn blocksMouse on.

      Now click within the highlighted area in the screenshot and check if Path changes the color or the background. If background changes the color even though you are clicking within the stroked area, it is bug.
      This works fine on desktop.

      I tested it on WinXP SP3 - JavaFX SDK b1.0.1-b02.

        1. BasicPath_Event.png
          25 kB
          Praveen Mohan
        2. BasicPath.fx
          6 kB
          Praveen Mohan
        3. PathControlModel.fx
          11 kB
          Praveen Mohan

            ailjin Artem Iljin (Inactive)
            pmohan Praveen Mohan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: