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

mouse released outside of window fires events twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.1 (Release)
    • None
    • Events
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows 7
      Language Found: English

    Description

      Steps to reproduce:
      1.
      In a new window register an event handler with the stage to capture mouse up events outside the window.

      stage.addEventListener( MouseEvent.MOUSE_UP, mouseUpHandler );
      2.
      Case 1) Press and release mouse within window.
      Case 2) Press and release mouse outside window.

      Actual Results:
      Case 1) mouseUpHandler gets called once.
      Case 2) mouseUpHandler gets called twice.
      First stack:
      MyWindow/mouseUpHandler
      flash.events::EventDispatcher/dispatchEventFunction [no source]
      flash.events::EventDispatcher/dispatchEvent [no source]
      mx.managers::WindowedSystemManager/stageEventHandler
      Second stack:
      MyWindow/mouseUpHandler

      Expected Results:
      Call mouseUpHandler once in all cases.

      Workaround (if any):
      Balance mouse down events with mouse up events. Ignore other events.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: