From e6d43c9282b1ccc0fb934f5a7e5d90e19892e3bc Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 25 Dec 2022 16:03:21 +0900 Subject: [PATCH] fix https://github.com/misskey-dev/misskey/pull/9399#issuecomment-1364635903 --- packages/client/src/components/global/MkEmoji.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/global/MkEmoji.vue b/packages/client/src/components/global/MkEmoji.vue index 440ef6220..419850d00 100644 --- a/packages/client/src/components/global/MkEmoji.vue +++ b/packages/client/src/components/global/MkEmoji.vue @@ -1,6 +1,6 @@ @@ -39,6 +39,7 @@ const url = computed(() => { }); const alt = computed(() => customEmoji.value ? `:${customEmoji.value.name}:` : char.value); +// Searching from an array with 2000 items for every emoji felt like too energy-consuming, so I decided to do it lazily on pointerenter function computeTitle(event: PointerEvent): void { const title = customEmoji.value ? `:${customEmoji.value.name}:`