# iOS：编辑长帖时滚动动量被禁用

**URL:** <https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981>\
**Category:** Bug\
**Created:** [2019年二月25日 00:36 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981 "2019-02-25T00:36:13Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![littke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/littke/32/121532_2.png) [@littke](https://meta.discourse.org/u/littke)\
**Post date:** [2019年二月25日 00:36 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/1 "2019-02-25T00:36:13Z")

</div>

Hi,

When writing long posts in the forum with an iPad, I need to scroll up and down as I’m working on my post.

However, the “scroll momentum” is disabled. So whenever I let go of my finger after swiping up or down, scrolling immediately stops. Instead, it should continue for 2-3 seconds after I stop. In particular, if I swipe quickly, it should go very far.

I believe this is a simple CSS property gone wrong.

Fixing this greatly improves usability with an iPad, when writing longer posts (which I do all the time).

The iPad Pro is becoming a very popular device and outperformed Apple’s expectations in terms of sales. I expect this trend to continue.

Thanks!

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年二月25日 00:45 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/2 "2019-02-25T00:45:36Z")

</div>

I am not seeing a repro of this on meta, could this be something custom with your CSS? Are you able to repro this here?

---

<div class="post-metadata">

**Author:** ![littke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/littke/32/121532_2.png) [@littke](https://meta.discourse.org/u/littke)\
**Post date:** [2019年二月25日 01:01 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/3 "2019-02-25T01:01:47Z")

</div>

I am.

> **[iCloud Photos - Apple iCloud](https://www.icloud.com/photos/#0gJcIn6rK8VjPAlF5bGab0Ugg)**
>
> View, organize, and share photos and videos with iCloud Photos on the web. Changes will sync across your devices with iCloud.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年二月25日 01:18 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/5 "2019-02-25T01:18:21Z")

</div>

Oh, I see what this is, I did not read this properly.

> [@littke](#):
>
> When **writing long posts** in the forum with an iPad

Yes, this is a problem due to the way we implemented “preview sync”, definitely something we can improve for ultra long posts, I suspect it is fairly complex to fix though. It is way beyond a 1 line CSS fix we would need to handle gestures here I think.

---

<div class="post-metadata">

**Author:** ![littke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/littke/32/121532_2.png) [@littke](https://meta.discourse.org/u/littke)\
**Post date:** [2019年二月25日 01:20 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/6 "2019-02-25T01:20:28Z")

</div>

Got it. Thanks!

When combined with the “editor only takes up half the height of the page” issue that you and I are discussing in another thread, almost all of my posts qualify as “super long posts” since the textarea is so small 🙂

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年二月25日 01:30 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/7 "2019-02-25T01:30:58Z")

</div>

Understood, I have a physical iPad keyboard and will experiment a bit to see if anything is better in iOS 12, stuff has changed here over the years, but its slow and Apple are not making any developers life easy here.

---

<div class="post-metadata">

**Author:** ![littke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/littke/32/121532_2.png) [@littke](https://meta.discourse.org/u/littke)\
**Post date:** [2019年二月25日 01:32 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/8 "2019-02-25T01:32:01Z")

</div>

This is the most responsive support I think I’ve seen to date from a SaaS company. Bravo.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年二月25日 02:59 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/9 "2019-02-25T02:59:44Z")

</div>

Have you tried out this button on the composer?

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/b/2b2e2d6c0f24952a77794933c4070a12a4d10d06.png)

I confirmed just now it works great on iPad + external keyboard. It provides a pretty excellent writing experience.

---

<div class="post-metadata">

**Author:** ![littke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/littke/32/121532_2.png) [@littke](https://meta.discourse.org/u/littke)\
**Post date:** [2019年二月25日 03:45 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/10 "2019-02-25T03:45:34Z")

</div>

> [@sam](#):
>
> I confirmed just now it works great on iPad + external keyboard. It provides a pretty excellent writing experience

Yes, it’s much better, thank you very much.

It _is_ the mode I am using the video though. So, momentum scrolling is still an issue within the full-screen mode.

With the following minor tweaks, I think it can work well:

- Momentum scrolling fix
- Remember full-screen mode after minimizing and reopening editor (it currently forgets it)
- Respect the cursor position when tapping inside the textarea (it currently moves the cursor to the beginning of the text)
- Ability to actually submit from this view

And bonus:

- Make the full-screen and minimize buttons somewhat larger (they’re a little hard to tap on mobile)
- Ability to edit title of a new thread from within this mode
- Somewhat larger font-size on iPad (or customizable somehow)

Hope this helps!

Jon

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年二月25日 03:48 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/11 "2019-02-25T03:48:05Z")

</div>

> [@littke](#):
>
> Somewhat larger font-size on iPad (or customizable somehow)

Very quick one here, everything you see on the screen is customizable, highly recommend you try out our `/admin/customize/themes` section, try creating a theme component, you can amend CSS for anything you want on your site.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年二月25日 06:09 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/12 "2019-02-25T06:09:05Z")

</div>

> [@littke](#):
>
> Ability to actually submit from this view

Ctrl+Enter submits a post, but for some reason this doesn’t work on iOS with a hardware keyboard in my testing tonight.

To change font size see your user preferences, this feature already exists.

---

<div class="post-metadata">

**Author:** ![littke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/littke/32/121532_2.png) [@littke](https://meta.discourse.org/u/littke)\
**Post date:** [2019年二月26日 20:31 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/13 "2019-02-26T20:31:19Z")

</div>

@sam Did you say somewhere that momentum scrolling is now fixed?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年二月26日 21:54 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/14 "2019-02-26T21:54:53Z")

</div>

No, this is going to be very tricky to work around, my priorities at the moment here are:

1. Start a movement to get Apple to provide an API that tells us that a keyboard is connected, Already opened a ticked with Apple on the bug tracker and Webkit, zero traction.

2. Decide with @codinghorror if we can pull in the “I have a keyboard” switch for iPads, instead of requiring a component

3. Figure our how to do shortcut post submission. Maybe make “option+enter” work for post submitting.

4. The touch resizing of composer may need a bit of tuning for touch, its a bit finicky

5. Maybe figure out cut and paste of images on iPad

Momentum thing is not on my list for now

---

<div class="post-metadata">

**Author:** ![littke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/littke/32/121532_2.png) [@littke](https://meta.discourse.org/u/littke)\
**Post date:** [2019年二月26日 22:21 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/15 "2019-02-26T22:21:11Z")

</div>

Super!

I recommend CMD+Enter for submission, that seems to be the iOS standard.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2020年十一月3日 06:42 UTC](https://meta.discourse.org/t/ios-scroll-momentum-is-disabled-when-editing-long-posts/109981/16 "2020-11-03T06:42:30Z")

</div>

这件事已经朝着很多方向发展了，@littke，你觉得我们还需要在这里做些什么吗？
