fix(android): fixed some annotation tools not responsive to tap on Android, closes #3225 (#3229)

This commit is contained in:
Huang Xin
2026-02-09 09:26:57 +08:00
committed by GitHub
parent bf72ab86cd
commit c6d4e2bdd6
2 changed files with 1 additions and 1 deletions
@@ -693,6 +693,7 @@ const Annotator: React.FC<{ bookKey: string }> = ({ bookKey }) => {
const handleSpeakText = async (oneTime = false) => {
if (!selection || !selection.text) return;
setShowAnnotPopup(false);
setEditingAnnotation(null);
eventDispatcher.dispatch('tts-speak', { bookKey, range: selection.range, oneTime });
};
@@ -147,7 +147,6 @@ export const useTextSelector = (
makeSelection(sel, index, true);
} else if (appService?.isAndroidApp) {
isUpToPopup.current = false;
makeSelection(sel, index, true);
}
}
};