Don't open panel, if it was closed few ms ago
For following case:
mousedown on downloads button to open panel (especially for clicks on button's edges)
-> mousedown again
-> panel automatically closes
-> we receive mousedown from button
(#25)
Align code
(addition for 926e073b38e8d168cb4d4faf2ab0fe403f9c6679 commit)
(#25)