Skip to content

Conversation

@vinguyen12
Copy link
Contributor

{
"react": "9.0.2",
"main": "9.38.0",
"legacyAdapter": "8.65.0",
"overrides": {}
}

Vi Nguyen and others added 30 commits September 12, 2025 11:52
Add TouchPlugin to handle text selection by touch

(Spec: For touch selection, move the cursor to the beginning or end of the word if they tap within 6 characters of the beginning/end. If not, then place the cursor where they originally tapped.)
Touch Selection - handle double tab

**Spec:**
Double tap on a word: Highlight the word or closest word if the user tapped on a space in between 2 words and open the Floatie Ribbon **(-> browser handles this)**
- note: if the user double taps on the open space after a word and there is no word on the right-side of the same, then highlight the first space of the wide gap
- note: if a user double taps on a character like a comma, period, colon, or semi-colon, then highlight that character
- note: if a user double taps on a bracket [,{,(,),},] that is next to a word, then highlight the word and not the bracket **(-> browser handles this)**


**Changes:**
 - Fix:  
      + reset `this.pointerEvent` to be `null `after trigger plugin event
      + use `setTimeout` to delay plugin event triggered for 200s to wait for new selection to be updated properly before defining the reposition (and also wait for `dblclick` event to check if it is double tab or single tab).
 - Listen to `dblclick` native event to trigger `pointerDoubleClick` if there is pointer event stored
 - Add new `pointerDoubleClick` plugin event and add handler in Touch Plugin
 - Add handler for 2 scenarios:
     + double clicked character is a punctuation mark: select that char only
     + double clicked character is a white space: check if right side has word, if yes, let browser handle it; if no, traverse to left and select the first white space char of the selected open space
vinguyen12 and others added 28 commits September 18, 2025 16:10
…tion

Touch Plugin - Handle the entire flow of touch selection (not rely on browser)
…menu

Touch - Fix selection range collapsed issue when pressing touch on a word
* add role format handler

* one line change to rerun checks
* Support CloneIndependentRoot feature

* fix build
Fix touch issue when re-clicking inside editor
@vinguyen12 vinguyen12 merged commit 1c57815 into release Oct 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants