Browse Source

Fix clicking on the pop-up player placeholder expanding the clicked toot

master
Claire 1 year ago
parent
commit
ddf3f4cf85
  1. 4
      app/javascript/flavours/glitch/components/status_content.js

4
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;

Loading…
Cancel
Save