This commit is contained in:
Zef Hemel
2024-01-13 18:42:40 +01:00
parent 0ff005a595
commit 0296679827
5 changed files with 16 additions and 7 deletions
+3
View File
@@ -31,6 +31,9 @@ export class LinkWidget extends WidgetType {
// Mouse handling
anchor.addEventListener("mousedown", (e) => {
if (e.button !== 0) {
return;
}
e.preventDefault();
e.stopPropagation();
this.options.callback(e);