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

老子叫甜甜 提交于 2019-11-27 09:57:27

问题


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. Maybe my combination is wrong. Anyone knows how? Thanks.


回答1:


Holding the "Alt/Option" key and dragging simulates multi-touch pinch-to-zoom.

Holding "Alt/Option + Shift" and dragging simulates multi-touch scrolling.




回答2:


There is a nice table with all the supported gestures in the iOS Simulator User Guide from Apple. 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.
  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.
  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.

Hope it helps.




回答3:


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.

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.

and to set the Mission Control and App Exposé to use four fingers (in TrackPad > More Gestures in the Settings App of OS X)

(I made beautiful screenshots, but I'm too rocky to post answers with images)




回答4:


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.



回答5:


It works with Three finger scroll on the Track pad.




回答6:


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.




回答7:


It works for me on MBP trackpad as well as on 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.

It also works with the "Three finger scroll".



来源:https://stackoverflow.com/questions/13275832/how-to-mimic-two-finger-scroll-drag-gesture-on-ios-simulator

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