Skip to content

fix(ui): long press selects again; selection handles whole inside the window (LTR + RTL) - #22

Merged
Mohammad-Erhim merged 1 commit into
mainfrom
fix/longpress-select
Oct 14, 2026
Merged

Mohammad-Erhim merged 1 commit into
mainfrom
fix/longpress-select

Conversation

@Mohammad-Erhim

Copy link
Copy Markdown
Owner
  • Long press on a touch screen selects the line under the finger again (no menu); keyboard stays up.
  • Selection handles at the edge of the formula were half cut off by the window - in RTL the start of the line is the right edge, so the start handle was the one hit. They are now moved inward whole, and dragging moves the edge by what the finger moved.
  • Tap to place the caret verified in LTR / RTL / Arabic letters, also in formulas wider than the phone (scrolled): no wrong positions.

554 tests pass.

🤖 Generated with Claude Code

…hole inside the window, in LTR and RTL

- long press selects the line under the finger; the keyboard stays (focus redirect from the display)
- a handle at the edge of the formula (the right edge for the start of an RTL line) was half cut off by
  the window: it is moved inward and the drag moves the edge by what the finger moved
- tools: probe_caret_tap / probe_caret_long (tap to place the caret, also in a scrolled formula),
  probe_longpress_select

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
math-type-x Ready Ready Preview Oct 14, 2026 9:28am UTC

@Mohammad-Erhim
Mohammad-Erhim merged commit 7f6ca6e into main Oct 14, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2dd82d77 Deployed Oct 14, 2026 by vercel[bot]
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.

1 participant