简体   繁体   English

如何在ios模拟器上模仿双指滚动/拖动手势?

[英]How to mimic two-finger scroll/drag gesture on ios simulator?

I have a scroll page that I specified two fingers minimum. 我有一个滚动页面,我最少指定两个手指。 It works on my device, but don't know how to mimic this gesture on Simulator. 它适用于我的设备,但不知道如何在模拟器上模仿这个手势。 I can mimic one-finger scroll without problem. 我可以毫无问题地模仿单指滚动。 I've tried option/ctrl/shift etc, but couldn't get it work. 我已经尝试过选项/ ctrl / shift等,但无法让它工作。 Maybe my combination is wrong. 也许我的组合错了。 Anyone knows how? 谁知道怎么样? Thanks. 谢谢。

Holding the "Alt/Option" key and dragging simulates multi-touch pinch-to-zoom. 按住“Alt / Option”键并拖动可模拟多点触控捏合变焦。

Holding "Alt/Option + Shift" and dragging simulates multi-touch scrolling. 按住“Alt / Option + Shift”并拖动可模拟多点触控滚动。

There is a nice table with all the supported gestures in the iOS Simulator User Guide from Apple. Apple的iOS模拟器用户指南中有一个很好的表格,其中包含所有支持的手势。 Here is the extract for the two-finger drag: 这是双指拖动的摘录:

  1. Place the pointer where you want the two-finger drag to occur. 将指针放在要进行双指拖动的位置。
  2. Hold down the Option key. 按住Option键。
  3. Move the circles that represent finger touches to the start position. 将表示手指触摸的圆圈移动到起始位置。
  4. Move the center of the pinch target by holding down the Shift key, moving the circles to the desired center position, and releasing the Shift key. 通过按住Shift键移动夹点目标的中心,将圆圈移动到所需的中心位置,然后释放Shift键。
  5. Hold down the Shift key and the mouse button, move the circles in the direction you want to drag, and release both the Shift key and the mouse button. 按住Shift键和鼠标按钮,沿想要拖动的方向移动圆圈,然后释放Shift键和鼠标按钮。

Hope it helps. 希望能帮助到你。

The best way to scroll in the iPad simulator is by the Three Fingers dragging, which is a global setup of the OS X and not a particular feature of the iOS simulator. 在iPad模拟器中滚动的最佳方式是通过Three Fingers拖动,这是OS X的全局设置,而不是iOS模拟器的特定功能。

In order to scroll using three fingers you need to turn on the 'Three Finger Drag' under TrackPad > Point and Click in the Settings App of OS X. 要使用三个手指滚动,您需要打开TrackPad> Point并单击OS X的Settings App中的“Three Finger Drag”。

and to set the Mission Control and App Exposé to use four fingers (in TrackPad > More Gestures in the Settings App of OS X) 并将Mission Control和AppExposé设置为使用四个手指(在OS X的设置应用程序中的TrackPad>更多手势中)

(I made beautiful screenshots, but I'm too rocky to post answers with images) (我制作了很漂亮的截图,但是我太过崎岖了,无法用图片发布答案)

To appear two fingers: 出现两个手指:

press ALT and drag mouse.

To zoom using two fingers: 要用两根手指进行缩放:

press ALT and press SHIFT (to adjust touches.After adjusting release SHIFT key) and drag mouse.

它适用于触控板上的三指滚动。

Things moved around in Sierra for me, but here is how I enabled 3-finger scrolling: 事情在塞拉为我移动,但这是我如何启用三指滚动:

  1. **System Preferences > Accessibility **系统首选项>辅助功能
  2. Scroll down to Mouse & Trackpad and tap Trackpad options 向下滚动到鼠标和触控板,然后点击触控板选项
  3. Make sure ' Enable Dragging ' is selected 确保选中“ 启用拖动
  4. Select ' three finger drag ' from the drop-down 从下拉列表中选择“ 三指拖动

Makes such a big difference when testing on various devices & simulators. 在各种设备和模拟器上进行测试时会产生如此大的差异。

It works for me on MBP trackpad as well as on Magic Trackpad. 它适用于MBP触控板和Magic Trackpad。

The clue is to enable "Three finger drag" in Trackpad settings (Preferences.app), then dragging, while ALT+SHIFT are pressed, makes scrolling work as expected. 线索是在触控板设置(Preferences.app)中启用“三指拖动”,然后拖动,同时按下ALT + SHIFT,使滚动按预期工作。

It also works with the "Three finger scroll". 它也适用于“三指滚动”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM