Skip to content

fix: stop card text from being selected on long press - #56

Merged
m1ngsama merged 1 commit into
mainfrom
fix/card-text-selection
Nov 24, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
fix/card-text-selection

Conversation

@m1ngsama

Copy link
Copy Markdown
Member

Long-pressing a member card or a pass in a list selected its text, and the page would not scroll again until the user tapped outside the selection.

Member cards and passes now block user-select and -webkit-touch-callout at their root, so the rule holds wherever a card appears: home, /me, /e, member pages, and the lanyard. The lanyard and member wall no longer repeat the rule. Page text such as titles, venue, and descriptions stays selectable, since people copy addresses and times and system translation relies on selection.

Checked in the production build with Chromium and WebKit: double-clicking card text selects nothing, and headings still select.

Closes #55

@m1ngsama
m1ngsama merged commit 851c00d into main Nov 24, 2026
2 checks passed
@m1ngsama
m1ngsama deleted the fix/card-text-selection branch November 24, 2026 12:34
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