← 输入框|github.com|刷新
Skip to content

web: stop card drags selecting text and dragging volume links on iOS - #40

Merged
yekta merged 1 commit into
masterfrom
fix/card-drag-text-selection
Oct 17, 2026
Merged

yekta merged 1 commit into
masterfrom
fix/card-drag-text-selection

Conversation

@yekta

@yekta yekta commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

On iOS, dragging a project, service or service group card could select the text under the finger. On service cards it could also start a native link drag from a volume line, which cancelled the reorder.

  • No text selection while dragging: a new rule in globals.css turns user-select off across the page whenever an element has data-drag-source. Touch drags no longer highlight the text they pass over. This applies to all sortable cards.
  • Volume lines in sortable service cards: ServiceCard now passes isSortable to VolumeUsageLine. When it's set, the volume link gets draggable={false} to stop the browser's own link drag, and -webkit-touch-callout: none to stop the iOS long-press callout. Both of these used to cancel the reorder drag. Volume lines outside sortable cards work as before.

- While a card is being dragged, text selection is turned off across the whole page, so touch drags no longer select the text they pass over.
- Volume lines inside sortable service cards stop the browser's native link drag and the iOS long-press callout, both of which cancelled the reorder drag.
@yekta
yekta merged commit 287824c into master Oct 17, 2026
8 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.

1 participant