Skip to content
Commit 160e1e18 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Close menu on "mouseup" instead of on "click" events in the document



"click" events are handled by several elements in user settings, and
some of them (like the edit icon in the user name) stop the propagation
of the event. Due to this the event never reaches the document and thus
the menu was not closed in those cases. "click" events are always
preceded by "mouseup" events (as "click" events are generated when
"mousedown" and "mouseup" events occur in the same element), so now the
menu is closed when a "mouseup" is received in the document.

The described problem would happen too if an element stopped the
propagation of the "mouseup" event; currently no element does that in
the user settings, so now the menu is always closed as expected.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 023e7c55
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment