Add ability to middle-mouse click posts in web UI (#32988)
This commit is contained in:
parent
e68b26c8df
commit
683db3ab25
3 changed files with 36 additions and 37 deletions
|
@ -204,8 +204,8 @@ class StatusContent extends PureComponent {
|
|||
element = element.parentNode;
|
||||
}
|
||||
|
||||
if (deltaX + deltaY < 5 && e.button === 0 && this.props.onClick) {
|
||||
this.props.onClick();
|
||||
if (deltaX + deltaY < 5 && (e.button === 0 || e.button === 1) && this.props.onClick) {
|
||||
this.props.onClick(e);
|
||||
}
|
||||
|
||||
this.startXY = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue