简体   繁体   中英

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

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

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

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.

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)

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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