mouseup instead of mousedown
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2024-01-26 17:02:01 +01:00
parent c380da6380
commit 058eb3c8c8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{{#metadata}} {{#info}} {{#portfolio}} {{#link}}
<li role="button" onmousedown="openLink('{{link}}');">
<li role="button" onmouseup="openLink('{{link}}');">
{{>portfolio/project.html}}
</li>
{{/link}} {{^link}}

View file

@ -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();
});
})