No need to click on an a tag to see the equation, just hover on any <a>
tag created using \eqref{label}
and that's it!
Check https://mauriciopoppe.com/notes/mathematics/calculus/derivative/ for a live demo
- index.html (the configuration I use for MathJax which enables equation numbers, see http://cdn.mathjax.org/mathjax/latest/test/sample-eqnum.html for more examples) (MathJaxV2)
- mathjaxPreview.js the scripts which enables the preview (MathJax V2)
- mathjaxPreviewV3.js the same script but with support for MathJax V3
That looks like CSS interference -- hard to tell without a live sample.
You could add the listeners to el.closest('mjx-container') instead (and then modify getTarget to return ev.currentTarget.querySelector('a') to drill down to the link again).