Add ability to middle-mouse click posts in web UI (#32988)

This commit is contained in:
Eugen Rochko 2024-11-20 16:56:35 +01:00 committed by GitHub
parent e68b26c8df
commit 683db3ab25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 36 additions and 37 deletions

View file

@ -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;