Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34187

mouseOut event not dispatched on component removal if setFocus() called

    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:
      1. Run the attached project
      2. Hover mouse over the first button (and don't move it)
      2.1. Notice that the mouseOut event was called.
      3. Hover mouse over the second button (and don't move it)

      Actual behaviour: mouseOut is not dispatched when the button is removed from stage, but only when the user moves the mouse again.
      Expected behaviour: mouseOut is dispatched as soon as the button is removed from stage, regardless which component had focus when the hovered button was removed.

      NOTES:
      -this bug is reproducible regardless which component we set the focus to before removing the second button.
      -this bug is reproducible with any type of component, not just Buttons, as long as you can add a MOUSE_OUT event listener to it.
      -this is most likely the cause of FLEX-34188.

      Attachments

        1. _MouseOutGlitch.fxp
          22 kB
          Mihai Chira

        Issue Links

          Activity

            People

              Unassigned Unassigned
              evolverine Mihai Chira
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: