You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So when a user on Android presses outside of the popup area - the selection doesn't get dismissed. Instead, they need to press twice. The first time the focus is placed outside of the popup, and the second time the tap is recognized as a "click" over a not-selectable area by the SelectionHandler.
Record_2024-10-15-13-19-32.mp4
Suggested Changes
Remove the reason filtering and always dismiss the annotation selection when the popup is about to be closed. As the closure reason usually will be the outside-press, focus-out, and escape-key.
The issue turned out to be related to the isCollapse still being false even though a user tapped outside of the active selection...
See - #136 (comment) & #163
Another issue is that the pointerup/pointerdown events handling was gated by the isContextMenu flag. See - #167
UPD: ✅
The text was updated successfully, but these errors were encountered:
Issue
Certain reasons filter the annotation selection dismissal:
text-annotator-js/packages/text-annotator-react/src/TextAnnotatorPopup/TextAnnotatorPopup.tsx
Lines 52 to 57 in 775f612
So when a user on Android presses outside of the popup area - the selection doesn't get dismissed. Instead, they need to press twice. The first time the focus is placed outside of the popup, and the second time the tap is recognized as a "click" over a not-selectable area by the
SelectionHandler
.Record_2024-10-15-13-19-32.mp4
Suggested Changes
Remove thereason
filtering and always dismiss the annotation selection when the popup is about to be closed. As the closure reason usually will be theoutside-press
,focus-out
, andescape-key
.The issue turned out to be related to the
isCollapse
still beingfalse
even though a user tapped outside of the active selection...See - #136 (comment) & #163
Another issue is that the
pointerup
/pointerdown
events handling was gated by theisContextMenu
flag. See - #167UPD: ✅
The text was updated successfully, but these errors were encountered: