From c5ded39c0edfc6a3c1244543d5c6cfbf829692e8 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 15 May 2025 20:29:43 +0200 Subject: [PATCH] [Glitch] Fix middle button mouse up on status header always opening status in a new tab Port 24d35996907ffcdf393f9938589eedced84353e4 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/components/status.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/javascript/flavours/glitch/components/status.jsx b/app/javascript/flavours/glitch/components/status.jsx index 18545b79f7..fb62be9b87 100644 --- a/app/javascript/flavours/glitch/components/status.jsx +++ b/app/javascript/flavours/glitch/components/status.jsx @@ -280,9 +280,8 @@ class Status extends ImmutablePureComponent { } }; - handleMouseUp = e => { + handleHeaderClick = e => { // Only handle clicks on the empty space above the content - if (e.target !== e.currentTarget && e.detail >= 1) { return; } @@ -691,7 +690,7 @@ class Status extends ImmutablePureComponent { {(connectReply || connectUp || connectToRoot) &&
} {(!muted) && ( -
+
{statusAvatar}