diff --git a/src/components/Main/MainView/MessageElement/StampElement.vue b/src/components/Main/MainView/MessageElement/StampElement.vue index dd19baec3..2aa36f270 100644 --- a/src/components/Main/MainView/MessageElement/StampElement.vue +++ b/src/components/Main/MainView/MessageElement/StampElement.vue @@ -19,7 +19,7 @@ @@ -94,6 +94,22 @@ watch( ) const { isHovered, onMouseEnter, onMouseLeave } = useHover() +const hoverTimeout = ref | null>(null) +const isLongHovered = ref(false) + +watch(isHovered, (beginHover) => { + if (beginHover) { + hoverTimeout.value = setTimeout(() => { + isLongHovered.value = true + }, 500) + } else { + if (hoverTimeout.value) { + clearTimeout(hoverTimeout.value) + hoverTimeout.value = null + } + isLongHovered.value = false + } +})