mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 09:16:43 +00: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()
|
closeTooltip()
|
||||||
}
|
}
|
||||||
|
|
||||||
let timeout: number
|
|
||||||
const whileShow = (ev: MouseEvent): void => {
|
const whileShow = (ev: MouseEvent): void => {
|
||||||
if ($tooltip.element && tooltipHTML) {
|
if ($tooltip.element && tooltipHTML) {
|
||||||
const rectP = tooltipHTML.getBoundingClientRect()
|
const rectP = tooltipHTML.getBoundingClientRect()
|
||||||
@ -131,18 +130,13 @@
|
|||||||
const inPopup: boolean =
|
const inPopup: boolean =
|
||||||
ev.x >= rectP.left && ev.x <= rectP.right && ev.y >= rectP.top - dT && ev.y <= rectP.bottom + dB
|
ev.x >= rectP.left && ev.x <= rectP.right && ev.y >= rectP.top - dT && ev.y <= rectP.bottom + dB
|
||||||
|
|
||||||
clearTimeout(timeout)
|
|
||||||
if (tooltipSW) {
|
if (tooltipSW) {
|
||||||
if (!inTrigger) {
|
if (!inTrigger) {
|
||||||
timeout = setTimeout(() => {
|
|
||||||
hideTooltip()
|
hideTooltip()
|
||||||
}, 100)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!(inTrigger || inPopup)) {
|
if (!(inTrigger || inPopup)) {
|
||||||
timeout = setTimeout(() => {
|
|
||||||
hideTooltip()
|
hideTooltip()
|
||||||
}, 100)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user