Changes between Initial Version and Version 1 of Ticket #18094, comment 3


Ignore:
Timestamp:
Jul 10, 2014, 2:32:25 AM (6 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18094, comment 3

    initial v1  
    11I was able to reproduce this, and fix it, at least in my tests.
    22
    3 When you mousedown on a `HasDropDown` subclass (like `DropDownButton`), HasDropDown sets up a `mouseup` listener at the document level.   That listener listens for a single `mouseup` event and then removes itself.   The problem is that we sometimes get two mousedown events in a row, causing us to lose the reference (`this._docHandler`) to that listener, so it never gets removed.   Then when pressing button 1, button 2 reacts to the mouseup event.
     3When you mousedown on a `HasDropDown` subclass (like `DropDownButton`), `HasDropDown` sets up a `mouseup` listener at the document level.   That listener listens for a single `mouseup` event and then removes itself.   The problem is that we sometimes get two mousedown events in a row, causing us to lose the reference (`this._docHandler`) to that listener, so it never gets removed.   Then when pressing button 1, button 2 reacts to the mouseup event.
    44