diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-05-18 17:49:51 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-05-18 17:49:51 +0200 |
commit | 9d6788b30b4fdcdc1310b8384bcc763e3c7a5427 (patch) | |
tree | 608cb1a4b9c435be671d75aa772a51d95bf46d66 /app/javascript | |
parent | 2154bd1b5a56f792cf06da84221086fa3e3f38d1 (diff) |
Prevent click on video from opening detailed toot
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_content.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index 742d3accf..6542df65b 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -98,7 +98,7 @@ export default 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 === 'button' || e.target.parentNode.localName === 'a'))) { + if (e.target.localName === 'button' || e.target.localName == 'video' || e.target.localName === 'a' || (e.target.parentNode && (e.target.parentNode.localName === 'button' || e.target.parentNode.localName === 'a'))) { return; } |