mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix the logical error in isElementInside() (#2714)
This commit is contained in:
commit
a7ae7533f3
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ const getCurrentTab = async function() {
|
|||
};
|
||||
|
||||
// Check if element b is inside a
|
||||
const isElementInside = (a, b) => (b.x >= a.x || b.right <= a.right) && (b.y >= a.y || b.bottom <= a.bottom);
|
||||
const isElementInside = (a, b) => (b.x >= a.x && b.right <= a.right) && (b.y >= a.y && b.bottom <= a.bottom);
|
||||
|
||||
// Check if two elements overlap
|
||||
const elementsOverlap = function(rect1, rect2) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue