Bugfix: MouseEvent.which is not reliable

This commit is contained in:
djmaze 2021-03-10 09:43:31 +01:00
parent 56df186e8d
commit 5601e100d9
3 changed files with 3 additions and 4 deletions

View file

@ -48,7 +48,7 @@ export class AbstractSystemDropDownUserView extends AbstractViewRight {
}
accountClick(account, event) {
if (account && event && undefined !== event.which && 1 === event.which) {
if (account && 0 === event.button) {
AccountStore.accounts.loading(true);
setTimeout(() => AccountStore.accounts.loading(false), 1000);
}