forked from akai/readest
8e7b2192d5
Tapping the section info or progress bar overlays did not dismiss an open annotation popup because the dismiss flow listens for iframe-single-click, which only fires from inside the foliate iframe. These overlays sit above the iframe and intercept taps before the iframe sees them, so the popup stayed open. Dispatch iframe-single-click first in their click handlers; if a popup consumes it (existing useTextSelector handler dismisses popup/selection and returns true), skip the original action. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>