# iOS Markdown 编辑器在第二次选中文本时卡死

**URL:** <https://meta.discourse.org/t/ios-markdown-composer-editor-freezes-when-selecting-text-a-second-time/407258>\
**Category:** Bug\
**Tags:** composer, ios\
**Created:** [2026年七月10日 11:50 UTC](https://meta.discourse.org/t/ios-markdown-composer-editor-freezes-when-selecting-text-a-second-time/407258 "2026-07-10T11:50:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![tannerabread](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tannerabread/32/526153_2.png) [@tannerabread](https://meta.discourse.org/u/tannerabread)\
**Post date:** [2026年七月14日 21:06 UTC](https://meta.discourse.org/t/ios-markdown-composer-editor-freezes-when-selecting-text-a-second-time/407258/6 "2026-07-14T21:06:49Z")

</div>

嘿 @Ethsim2 我刚刚合并了一个修复此问题的补丁，很快就会可用。

> <https://github.com/discourse/discourse/pull/41711>
>
> PR #41366 introduced a regression on iOS where text-selection gestures in the co…mposer would get canceled. The scroll-lock added there routes composer touchmove events through body-scroll-lock, which calls \`preventDefault\` at scroll boundaries -- and a short textarea is always at its boundary -- so iOS never got a chance to handle the selection-handle drag.
> 
> Add a capture-phase touchmove listener on the editor that stops propagation when the editor has a selection, so the event never reaches body-scroll-lock's handlers and iOS handles the gesture natively.
> 
> \[Meta Topic\](https://meta.discourse.org/t/ios-markdown-composer-editor-freezes-when-selecting-text-a-second-time/407258)

---

_[View the full topic](https://meta.discourse.org/t/ios-markdown-composer-editor-freezes-when-selecting-text-a-second-time/407258)._
