mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix overlap checks with labels
This commit is contained in:
parent
bb1da8c64d
commit
bebf47783b
1 changed files with 1 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ kpxcFields.isTopElement = function(elem, rect) {
|
|||
const topElement = rootNode.elementFromPoint(x, elementRect.top + (elementRect.height / 2));
|
||||
return element?.labels &&
|
||||
element.labels[0] === topElement &&
|
||||
isElementInside(elementRect, topElement.getBoundingClientRect())
|
||||
elementsOverlap(elementRect, topElement.getBoundingClientRect())
|
||||
? element
|
||||
: topElement;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue