From cc01d846858e5c4bcc9cb968df33d10ab3dc241c Mon Sep 17 00:00:00 2001 From: liupeng Date: Thu, 20 Oct 2022 17:58:57 +0800 Subject: [PATCH] fix: When clicking continuously and quickly, the click target will change from the picture to the heart icon, resulting in the wrong positioning of the heart icon behind --- double-click-heart/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/double-click-heart/style.css b/double-click-heart/style.css index c578a1e..3761ff7 100644 --- a/double-click-heart/style.css +++ b/double-click-heart/style.css @@ -40,6 +40,7 @@ small { } .loveMe .fa-heart { + pointer-events: none; position: absolute; animation: grow 0.6s linear; transform: translate(-50%, -50%) scale(0);