Make hover target for menu button more reasonable
This commit is contained in:
parent
cb06c4e954
commit
6f32c1932f
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
if (popover) {
|
if (popover) {
|
||||||
const {x, y, width, height} = popover.popper.getBoundingClientRect()
|
const {x, y, width, height} = popover.popper.getBoundingClientRect()
|
||||||
|
|
||||||
if (!between([x, x + width], clientX) || !between([y, y + height + 30], clientY)) {
|
if (!between([x, x + width], clientX) || !between([y - 50, y + height + 50], clientY)) {
|
||||||
popover.hide()
|
popover.hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue