mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
send android selection coordinates when touches end
This commit is contained in:
parent
59da048849
commit
708bb25470
3 changed files with 14 additions and 1 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -16,6 +16,16 @@ export function useSelection(
|
|||
|
||||
const handleFinishTouch = useCallback(
|
||||
async (mouseEvent) => {
|
||||
const tapAttributes = {
|
||||
tapX: mouseEvent.clientX,
|
||||
tapY: mouseEvent.clientY,
|
||||
}
|
||||
|
||||
window?.AndroidWebKitMessenger?.handleIdentifiableMessage(
|
||||
'userTap',
|
||||
JSON.stringify(tapAttributes)
|
||||
)
|
||||
|
||||
const result = await makeSelectionRange()
|
||||
|
||||
if (!result) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue