Browse Source

tiny js fix for 'show more' button in chrome (#3045)

master
beatrix 7 years ago
committed by Eugen Rochko
parent
commit
fd03a3d957
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/components/status_content.js

+ 1
- 1
app/javascript/mastodon/components/status_content.js View File

@ -68,7 +68,7 @@ class StatusContent extends React.PureComponent {
const [ startX, startY ] = this.startXY; const [ startX, startY ] = this.startXY;
const [ deltaX, deltaY ] = [Math.abs(e.clientX - startX), Math.abs(e.clientY - startY)]; 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; return;
} }

Loading…
Cancel
Save