From: beatrix Date: Sat, 13 May 2017 20:07:58 +0000 (-0400) Subject: tiny js fix for 'show more' button in chrome (#3045) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=fd03a3d95731d479f19bc4894746027097b9e2a3;p=mastodon.git tiny js fix for 'show more' button in chrome (#3045) --- diff --git a/app/javascript/mastodon/components/status_content.js b/app/javascript/mastodon/components/status_content.js index c51f85d10..fd12cc78a 100644 --- a/app/javascript/mastodon/components/status_content.js +++ b/app/javascript/mastodon/components/status_content.js @@ -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; }