Documentation ¶
Overview ¶
Package trackpad provides helper functions to simulate trackpad events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Swipe ¶
func Swipe(ctx context.Context, tconn *chrome.TestConn, tpw *input.TrackpadEventWriter, swipeDirection SwipeDirection, touches int) error
Swipe performs a swipe movement in the indicated direction with given number of touches.
func TurnOffReverseScroll ¶
TurnOffReverseScroll turns off the reverse scrolling for trackpad.
Types ¶
type SwipeDirection ¶
type SwipeDirection int
SwipeDirection represents the swipe direction.
const ( UpSwipe SwipeDirection = iota DownSwipe LeftSwipe RightSwipe )
Variables used to determine the swipe direction.
Click to show internal directories.
Click to hide internal directories.