Merge "Don't expand change panel on middle click"
This commit is contained in:
commit
5ef1de5cb4
|
@ -34,7 +34,11 @@ class ChangePanel extends React.Component {
|
||||||
this.clicked = false
|
this.clicked = false
|
||||||
}
|
}
|
||||||
|
|
||||||
onClick () {
|
onClick (e) {
|
||||||
|
// Skip middle mouse button
|
||||||
|
if (e.button === 1) {
|
||||||
|
return
|
||||||
|
}
|
||||||
let expanded = this.state.expanded
|
let expanded = this.state.expanded
|
||||||
if (!this.clicked) {
|
if (!this.clicked) {
|
||||||
expanded = this.props.globalExpanded
|
expanded = this.props.globalExpanded
|
||||||
|
|
Loading…
Reference in New Issue