Merge "Don't expand change panel on middle click"

This commit is contained in:
Zuul 2020-01-18 03:23:15 +00:00 committed by Gerrit Code Review
commit 5ef1de5cb4
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ class ChangePanel extends React.Component {
this.clicked = false
}
onClick () {
onClick (e) {
// Skip middle mouse button
if (e.button === 1) {
return
}
let expanded = this.state.expanded
if (!this.clicked) {
expanded = this.props.globalExpanded