]> cat aescling's git repositories - mastodon.git/commitdiff
tiny js fix for 'show more' button in chrome (#3045)
authorbeatrix <beatrix.bitrot@gmail.com>
Sat, 13 May 2017 20:07:58 +0000 (16:07 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 13 May 2017 20:07:58 +0000 (22:07 +0200)
app/javascript/mastodon/components/status_content.js

index c51f85d10cd452fe80d2828f19f9352ab9753083..fd12cc78a95120e7e21e6ad2ca81ca311f1289d1 100644 (file)
@@ -68,7 +68,7 @@ class StatusContent extends React.PureComponent {
     const [ startX, startY ] = this.startXY;
     const [ deltaX, deltaY ] = [Math.abs(e.clientX - startX), Math.abs(e.clientY - startY)];
 
-    if (e.target.localName === 'button' || e.target.localName === 'a' || (e.target.parentNode && e.target.parentNode.localName === 'a')) {
+    if (e.target.localName === 'button' || e.target.localName === 'span' || e.target.localName === 'a' || (e.target.parentNode && e.target.parentNode.localName === 'a')) {
       return;
     }