iOS 模拟器在 Apple M1 上滚动太快 [英] iOS Simulator scrolls too fast on Apple M1

查看:213
本文介绍了iOS 模拟器在 Apple M1 上滚动太快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个 flutter 项目,当在模拟器上拖动任何列表或滚动视图时,它滚动的力度太大,几乎不可能到达我需要的行.

I'm running a flutter project and when dragging any list or scroll view on the simulator, it scrolls with way too much force rendering almost impossible to get to the row I need.

这只发生在模拟器中,在真实设备上似乎运行良好.此外,当我迁移到 Apple M1 MacBook Pro 时,这个问题就开始了.

This only happens in the simulator, and it seems to work fine on a real device. Also, this problem started when I had migrated to an Apple M1 MacBook Pro.

有什么想法吗?

推荐答案

我遇到了类似的问题,但就我而言,问题与速度无关,但是不一样的东西.

I experienced a similar issue but the problem, in my case, is not related to speed but something different.

具体来说,如果您强制 iOS 模拟器在 Rosetta 下运行,您会看到它按预期工作.不知道为什么,但这就是我正在经历的.始终可以使用 1.22.5(稳定版)重现.

Specifically, if you force your iOS Simulator to run under Rosetta you'll see that it works as expected. Not sure why, but this is what I'm experiencing. Always reproducible with 1.22.5 (stable).

要在 Rosetta 中运行,请右键单击 Xcode 并选择显示包内容",然后导航到内容".开发人员应用程序,"在那里你会找到模拟器应用程序.如果您右键单击它并选择显示信息",您将找到一个使用 Rosetta 运行它的选项.

To run in Rosetta, right click on Xcode and choose "Show Package Contents", from there you navigate to "Contents > Developer > Applications," There you'll find the Simulator app. If you right click on it and choose "Show info", you'll find an option to run it using Rosetta.

更新 14/9/2021: Xcode 12.5.1 不再需要上述解决方法.滚动功能开箱即用.

Update 14/9/2021: Xcode 12.5.1 no longer needs the above workaround. Scrolling is working fine out-of-the-box.

这篇关于iOS 模拟器在 Apple M1 上滚动太快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆