mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 03:59:50 +03:00
Revert added tooltip timeout (#1648)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
3066e8554e
commit
7b6c5338b9
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user