Skip to content

Commit

Permalink
tiny js fix for 'show more' button in chrome (mastodon#3045)
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrix-bitrot authored and Gargron committed May 13, 2017
1 parent 4bd0488 commit fd03a3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/components/status_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fd03a3d

Please sign in to comment.