iOS Simulator scrolls too fast on Apple M1

本秂侑毒 提交于 2021-02-18 08:38:34

问题


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.

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.

Any ideas?


回答1:


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

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).

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.




回答2:


This probably happens because the emulators are faster due to the usage of ARM.

Is it the only one speeded up animation? Maybe there are more. If so, set the timeDilatation.

import 'package:flutter/scheduler.dart' show timeDilation;

void main() {
  timeDilation = 2.0;
  runApp(new MyApp());
}


来源:https://stackoverflow.com/questions/65476069/ios-simulator-scrolls-too-fast-on-apple-m1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!