Revert added tooltip timeout (#1648)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2022-05-05 16:59:15 +07:00 committed by GitHub
parent 3066e8554e
commit 7b6c5338b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,6 @@
closeTooltip()
}
let timeout: number
const whileShow = (ev: MouseEvent): void => {
if ($tooltip.element && tooltipHTML) {
const rectP = tooltipHTML.getBoundingClientRect()
@ -131,18 +130,13 @@
const inPopup: boolean =
ev.x >= rectP.left && ev.x <= rectP.right && ev.y >= rectP.top - dT && ev.y <= rectP.bottom + dB
clearTimeout(timeout)
if (tooltipSW) {
if (!inTrigger) {
timeout = setTimeout(() => {
hideTooltip()
}, 100)
hideTooltip()
}
} else {
if (!(inTrigger || inPopup)) {
timeout = setTimeout(() => {
hideTooltip()
}, 100)
hideTooltip()
}
}
}