From 3abdb8ceb05b61563b69222d3153ec3a7c2d44ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Menu?= Date: Mon, 29 Apr 2024 13:51:27 +0200 Subject: [PATCH] Fix handling EPUB `noteref` with nested elements (#503) --- .../src/main/java/org/readium/r2/navigator/R2BasicWebView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readium/navigator/src/main/java/org/readium/r2/navigator/R2BasicWebView.kt b/readium/navigator/src/main/java/org/readium/r2/navigator/R2BasicWebView.kt index fb2dba218b..d9bbf7eaf9 100644 --- a/readium/navigator/src/main/java/org/readium/r2/navigator/R2BasicWebView.kt +++ b/readium/navigator/src/main/java/org/readium/r2/navigator/R2BasicWebView.kt @@ -287,7 +287,7 @@ internal open class R2BasicWebView(context: Context, attrs: AttributeSet) : WebV // We ignore taps on interactive element, unless it's an element we handle ourselves such as // pop-up footnotes. if (event.interactiveElement != null) { - return handleFootnote(event.targetElement) + return handleFootnote(event.interactiveElement) } return runBlocking(uiScope.coroutineContext) { listener?.onTap(event.point) ?: false }