Fix middle-click handling conflicting with automatic scrolling (#33106)

This commit is contained in:
Claire authored and GitHub committed 2024-11-29 14:04:22 +00:00
1 parent 9296d58024
commit 9ff01403ea
2 files changed
+2 -2

No files matched your search

@@ -204,7 +204,7 @@ class StatusContent extends PureComponent {
element = element.parentNode;
}
if (deltaX + deltaY < 5 && (e.button === 0 || e.button === 1) && this.props.onClick) {
if (deltaX + deltaY < 5 && (e.button === 0 || e.button === 1) && e.detail >= 1 && this.props.onClick) {
this.props.onClick(e);
}