mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-28 13:33:44 +01:00
Fix clicking on the pop-up player placeholder expanding the clicked toot
This commit is contained in:
parent
a85eb7d930
commit
ddf3f4cf85
1 changed files with 2 additions and 2 deletions
|
@ -224,8 +224,8 @@ export default class StatusContent extends React.PureComponent {
|
||||||
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)];
|
||||||
|
|
||||||
let element = e.target;
|
let element = e.target;
|
||||||
while (element) {
|
while (element !== e.currentTarget) {
|
||||||
if (['button', 'video', 'a', 'label', 'canvas'].includes(element.localName)) {
|
if (['button', 'video', 'a', 'label', 'canvas'].includes(element.localName) || element.getAttribute('role') === 'button') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
element = element.parentNode;
|
element = element.parentNode;
|
||||||
|
|
Loading…
Reference in a new issue