diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-07-12 14:44:35 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-07-12 16:24:53 +0200 |
commit | ddf3f4cf85f0be6f221e68bda5944dd8a034ff91 (patch) | |
tree | 5c3470e8adf13b983200358a42d5b578f5bc02cf /app/javascript/flavours/glitch/components | |
parent | a85eb7d930c0b1acfef9a25c102d902f63f3d379 (diff) |
Fix clicking on the pop-up player placeholder expanding the clicked toot
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_content.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index 34ff97305..faa1302c4 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -224,8 +224,8 @@ export default class StatusContent extends React.PureComponent { const [ deltaX, deltaY ] = [Math.abs(e.clientX - startX), Math.abs(e.clientY - startY)]; let element = e.target; - while (element) { - if (['button', 'video', 'a', 'label', 'canvas'].includes(element.localName)) { + while (element !== e.currentTarget) { + if (['button', 'video', 'a', 'label', 'canvas'].includes(element.localName) || element.getAttribute('role') === 'button') { return; } element = element.parentNode; |