Add ability to middle-mouse click posts in web UI (#32988)
This commit is contained in:
1 parent
e68b26c8df
commit
683db3ab25
3 files changed
+36
-37
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user