Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

Enable Android cursor drag positioning#1680

Open
Agentriel wants to merge 1 commit into
BoostIO:masterfrom
Agentriel:fix/issue-443-android-cursor-drag
Open

Enable Android cursor drag positioning#1680
Agentriel wants to merge 1 commit into
BoostIO:masterfrom
Agentriel:fix/issue-443-android-cursor-drag

Conversation

@Agentriel
Copy link
Copy Markdown

Closes #443

IssueHunt bounty: https://issuehunt.io/r/BoostIO/BoostNote-App/issues/443

Summary

  • add an Android-only long-press cursor drag handler for the mobile CodeMirror editor
  • move the cursor with coordsChar/setCursor while dragging after the long press activates
  • clean up touch/context-menu listeners when the editor unmounts, while leaving normal tap/scroll gestures alone before activation

Validation

  • npm exec --package prettier@2.5.1 -- prettier --check src/mobile/lib/codeMirrorTouchCursor.ts src/mobile/components/pages/DocEditPage.tsx
  • git diff --check

I could not run the full project test suite locally because installing the existing dependency tree exhausted the /tmp tmpfs in this environment.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable/Add cursor positioning when editing on Android app

2 participants