Not able to prevent event on mobile

I’m capturing the click event on a link as a part of creating a workaround for another issue with reference links (such as [foo][0] and then later somewhere have [0]: https://foo.bar)

	this.registerDomEvent(document, 'click', (evt: MouseEvent) => {

Everything works well on desktop. However, on mobile I cannot prevent the default behavior. The core logic works (the app opens the reference url on click) but it also tries to create file. This default behaviour is not present in the desktop app, as I am able to stop the event.

				evt.stopPropagation();
				evt.stopImmediatePropagation();
				evt.preventDefault();

Summary: The snippet above stops the event default behaviour on desktop, but it fails to do so on mobile (android). How can I fix this? Any ideas?

EDIT
I found the two year old thread preventDefault() does not work on mobile? without any responses, but I wasn’t sure it was the exact same problem. It is probably related though…

this.registerDomEvent(document, ‘click’, (evt) => {

}, true); ← Claude taught me to write true here

Unfortunately this did no difference. I had previously tried with { capture: true, ... also as a second argument.