From cd5e9a8c0a47e2c2411a939cafb51214c0b66cf0 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 24 Aug 2023 21:48:34 +0700 Subject: [PATCH] better events --- extension/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/script.js b/extension/script.js index cf15a36..96dfd7a 100644 --- a/extension/script.js +++ b/extension/script.js @@ -283,14 +283,14 @@ function processTitle(titleContainer) { }); titleContainer.classList.add('title-container'); - titleContainer.addEventListener('mouseover', () => { + titleContainer.addEventListener('mouseenter', () => { const taButton = titleContainer.querySelector('.ta-button'); if (!taButton) return; if (!taButton.isChecked) checkVideoExists(taButton); taButton.style.opacity = 1; }); - titleContainer.addEventListener('mouseout', () => { + titleContainer.addEventListener('mouseleave', () => { const taButton = titleContainer.querySelector('.ta-button'); if (!taButton) return; taButton.style.opacity = 0;