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

GroupBase incorrectly computes hasMouseListeners which breaks e.g. mouseEnabledWhereTransparent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.11.0
    • None
    • Spark: Group

    Description

      The `GroupBase#hasMouseListeners` property is vital for things like dispatching mouse events on transparent parts on the group, however, the current algo is incorrect - it just increments a counter every time addEventListener() is called and decrements it when removeEventListener() is called.

      That means that when I call addEventListener("click") and then removeEventListener("someOtherMouseEvent"), the hasMouseListeners property will be false even though I have an active "click" listener.

      Attachments

        1. Flex34040Demo.fxp
          9 kB
          Borek Bernard

        Activity

          People

            Unassigned Unassigned
            borekb Borek Bernard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: