From 058eb3c8c80c2c45b2b6e06e0d5e993c0db0cc50 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 26 Jan 2024 17:02:01 +0100 Subject: [PATCH] mouseup instead of mousedown --- templates/portfolio/card.html | 2 +- templates/portfolio/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/portfolio/card.html b/templates/portfolio/card.html index a79ec0a..e0b0a82 100644 --- a/templates/portfolio/card.html +++ b/templates/portfolio/card.html @@ -1,5 +1,5 @@ {{#metadata}} {{#info}} {{#portfolio}} {{#link}} -
  • +
  • {{>portfolio/project.html}}
  • {{/link}} {{^link}} diff --git a/templates/portfolio/index.html b/templates/portfolio/index.html index b2ce21e..4a3e6fb 100644 --- a/templates/portfolio/index.html +++ b/templates/portfolio/index.html @@ -36,7 +36,7 @@ document.querySelectorAll("main a").forEach(function (link) { link.setAttribute("target", "_blank"); link.setAttribute("rel", "noreferrer"); - link.addEventListener("mousedown", function (event) { + link.addEventListener("mouseup", function (event) { event.stopPropagation(); }); })