mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
[Glitch] Add ability to middle-mouse click posts in web UI
Port 683db3ab25 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -319,7 +319,7 @@ class StatusContent extends PureComponent {
|
||||
element = element.parentNode;
|
||||
}
|
||||
|
||||
if (deltaX + deltaY < 5 && e.button === 0 && this.props.onClick) {
|
||||
if (deltaX + deltaY < 5 && (e.button === 0 || e.button === 1) && this.props.onClick) {
|
||||
this.props.onClick(e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user