mouseup instead of mousedown
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
This commit is contained in:
parent
c380da6380
commit
058eb3c8c8
2 changed files with 2 additions and 2 deletions
|
@ -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}}
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue