Add support of popover footnotes

This commit is contained in:
chrox
2024-12-10 14:14:34 +01:00
parent 6efdbb78e5
commit 0cbb950c37
9 changed files with 160 additions and 21 deletions
@@ -104,7 +104,7 @@ export const handleClick = (bookKey: string, event: MouseEvent) => {
if (Date.now() - lastClickTime >= doubleClickThreshold) {
let element: HTMLElement | null = event.target as HTMLElement;
while (element) {
if (['a', 'audio', 'video'].includes(element.tagName.toLowerCase())) {
if (['sup', 'a', 'audio', 'video'].includes(element.tagName.toLowerCase())) {
return;
}
element = element.parentElement;