Skip to content

webroot: no text selection or callout on long-press of controls - #29

Draft
ash-iir wants to merge 1 commit into
mainfrom
ui-no-text-select
Draft

ash-iir wants to merge 1 commit into
mainfrom
ui-no-text-select

Conversation

@ash-iir

@ash-iir ash-iir commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Native feel. In the WebView, a long press on a bottom tab, a button or an app or backup row selects its text and can open the callout menu. That is the most visible "this is a web page" tell.

  • .tabs, .tab, .btn, .icon-btn, .segment, summary.section-head, and the .name/.pkg labels inside .row.tappable get user-select: none and -webkit-touch-callout: none.
  • button, .tab, .row.tappable, summary and checkboxes get touch-action: manipulation, so taps skip the double-tap-zoom wait. Pinch zoom stays.
  • Body text, notices, dialogs (including the backup info key/values with copy), inputs and the log are unchanged and still selectable.

Testing

  • Playwright mock harness: computed user-select is none on the tab, the row button and the row name (auto on main), touch-action on a tab is manipulation, and the body is still auto.
  • Not checked on a real touch screen. Not tested on a rooted device.

A long press on a tab, button or tappable row started a text selection
and the WebView callout menu, which is what makes the UI feel like a web
page. Turn off user-select and the touch callout on controls and row
labels, and set touch-action: manipulation on tappable elements. Text in
notices, dialogs and the log stays selectable.

Signed-off-by: ash-iir <254348575+ash-iir@users.noreply.github.com>
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