mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add touchend listener for mobile
This commit is contained in:
parent
fe851a2fad
commit
39d6a612b6
1 changed files with 10 additions and 0 deletions
|
|
@ -311,6 +311,11 @@ export default function PdfViewer(props: PdfArticleContainerProps) {
|
|||
'mouseup',
|
||||
detectHighlightedText
|
||||
)
|
||||
|
||||
props.containerRef.current.addEventListener(
|
||||
'touchend',
|
||||
detectHighlightedText
|
||||
)
|
||||
}
|
||||
|
||||
return () => {
|
||||
|
|
@ -319,6 +324,11 @@ export default function PdfViewer(props: PdfArticleContainerProps) {
|
|||
'mouseup',
|
||||
detectHighlightedText
|
||||
)
|
||||
|
||||
props.containerRef.current.addEventListener(
|
||||
'touchend',
|
||||
detectHighlightedText
|
||||
)
|
||||
}
|
||||
}
|
||||
}, [
|
||||
|
|
|
|||
Loading…
Reference in a new issue